Page MenuHomePhabricator

Custom size for workbench parts not honoured
Closed, WontfixPublic

Description

Providing a preferred with for a view which changes in steps (i.e. the width is always a multiple of a constant > 1) and is placed on the bottom (or right) of a sash container does not behave as expected.

Event Timeline

The normal behaviour (which is implemented and works) is that the parts inside a sash container are aligned to the left (or height). The provided preferred width via the ISizeProvider interface is applied to the child parts, thus a right child with a "discrete" width does not result in the sash handle being moved in discrete steps too (because the left widget has a "continuous" width and the right widgets width is set as preferred). The change in the width for the right widget happens, but the extra space remains after it (instead of adding it to the width of the left child).

[SVN revision 20074]
FIX (#2938): add a workbench preference constants to set the "alignment" behaviour of parts inside sash containers. Useful for parts which provided a preferred size which is a multiple of a constant > 1.

[SVN revision 20091]
FIX (#2938): removed std::cout

If the alignment is set to "right", and a part with discrete size hints is placed to the left, the extra space is not distributed correctly. Try placing the perspective switcher on top in the Mitk3M3 application.

Not 3M relevant, removing keyword.

Resetting all bugs without active assignee flag to "CONFIRMED". Change status to IN_PROGRESS if you are working on it.

kislinsk claimed this task.
kislinsk added a subscriber: kislinsk.
This task was automatically closed because it wasn't updated at least since July 2016 (over 2 years). Please re-open this task if you think that it is still relevant. This most probably means that you will resolve it.