Skip to content

Resize query window

Benjamin requested to merge ger-benjamin/gg-viewer:148-resize-query-window into main

Description

Closes #148 (closed) (resize query window)

Job done

Add a helper to resize an position:absolute window with button (zones) placed around the window.

As GirafeResizableElement is a dedicate class for component and the selection window already extends GirafeDraggableElement, it was not possible to re-use it without big transformation. The new helper focus on resizing absolute and "detached/floating" window.

With colors, the resizers-borders looks like that:

Screenshot_from_2024-05-29_10-00-05

The size is limited max and min width and height as defined in CSS or element-style.

Definition of Done

For the Developer:

  • Code compiles and conforms to defined coding standards (eslint, tsc, prettier).
  • If necessary (at the developer's discretion), unit tests have been added for critical parts.
  • All unittests run without error.
  • Sonar-Scan returns no new issues or security hotspots.
  • Documentation has been updated where necessary (see documentation repository).
  • Merge-Request contains a few explanations of what was done.
  • A Reviewer has been assigned to the Merge-Request.

For the Reviewer:

  • New code was reviewed.
  • If comments could be added on unclear code, the developer has been informed.
  • If unitests could be added in certain places, the developer has been informed.
  • Merge-Request was merged on main branch.
  • All pipelines work.
  • The changes were tested on demo environment.
  • Application performance has not been degraded by the modifications.
Edited by Guillaume Remy

Merge request reports