Graphical bug with toolbar containing Component

After dragging toolbar (containing Component) to the new location, dark grey toolbar „title“ changes to incorrect size (not matching the size of dotted grip). When dragging toolbar by dotted grip, everything is OK.

Before:

After:

Code for toolbar creation:

control.setTheme(ThemeMap.KEY_ECLIPSE_THEME);

CToolbarContentArea toolbarArea = new CToolbarContentArea(control, "base");
control.addStationContainer(toolbarArea);
this.add(toolbarArea);

JSpinner timeSpinner = new JSpinner(new SpinnerDateModel());
JSpinner.DateEditor timeEditor = new JSpinner.DateEditor(timeSpinner, "mm:ss.SSS");
timeSpinner.setEditor(timeEditor);

CToolbarItem prefToolbarItem = new CToolbarItem("pref");
prefToolbarItem.setLocation(toolbarArea.getNorthToolbar().getStationLocation());
prefToolbarItem.setItem(timeSpinner);

control.addDockable(prefToolbarItem);
prefToolbarItem.setVisible(true);```

Hi tGM,

I will try out your application next week, and hopefully repair this bug. Currently I do not find the time to work on the framework.

Regards
Beni

I think I fixed this issue with version 1.1.2p10e. Well - “fixing” is the wrong word, I put in a workaround that makes it look as if there was no bug. In reality there still is a design flaw - the size of a Component is used to compute the preferred size of another Component. Bug fixing that flaw may well be more than one day of work.

For future issues in this area: https://github.com/Benoker/DockingFrames/commit/31d2e365d95a4c076477aa6a8a26a7ace3bbe054