TheMonsterFromTheDeep / vague

Java-based image editor
0 stars 0 forks source link

VerticalModulePane resizing #7

Closed TheMonsterFromTheDeep closed 8 years ago

TheMonsterFromTheDeep commented 9 years ago

The resizing of modules for VerticalModulePane (and, in the future, HorizontalModulePane) works pretty well right now. However, when the cursor goes beyond where the module is being resized (because of minimum size restrictions) the cursor is then offset from resizing the module by some amount which makes the UI less friendly.

It also might be beneficial to implement dynamic minimum sizes based on the amount of modules - if the amount of modules is bigger, the minimum size could be smaller - but then again, that doesn't make very much sense because then resizing single modules to the minimum size could be strange

TheMonsterFromTheDeep commented 9 years ago

This issue now also exists in HorizontalModulePane.

Now, however, the HorizontalModulePane has a strange glitch where resizing modules other than the first two will not work correctly. Also, both ModulePane classes have slight draw glitches when drawing the modules outside the two being resized because they are not re-drawn even when the arrow moves into them.

TheMonsterFromTheDeep commented 9 years ago

The HorizontalModulePane now properly resizes.

However, the arrow drawing glitch still exists. There is a simply solution, which is simply re-drawing all child modules. This may end up being the best solution.

Other solutions included limiting the position the arrow is allowed move to. As long as the minimum size of the window is never less smaller than the arrow, it should never draw into any other modules.

TheMonsterFromTheDeep commented 8 years ago

Resizing now works pretty well except there are still glitches when the mouse pointer is moved very quickly.

TheMonsterFromTheDeep commented 8 years ago

As the code is now under a completely new system, this is no longer relevant.