[squeak-dev] DockingBarMorph errors?
Christoph.Thiede at student.hpi.uni-potsdam.de
Tue Mar 24 18:15:11 UTC 2020
Interesting. The defect appears to be #updateLayoutProperties, where #hResizing and #vResizing are set without regard to their old values. While the menu items are okay to be set like this, the spacers are not, and neither are the search bar and the clock (for completeness, the docking bar is built in #fillDockingBar:). I don't know how we could rule this best:
Store the relative resizing information as a new property in each submorph of the docking bar? This would make it harder to extend it.
Only swap hResizing and vResizing values when the method is called (with a few assertions, of course)? This is not too easy because the docking bar has more than two resizing states: It can be floating, too.
Remember the latest resizing properties of all submorphs before the adhering is changed, and reapply it when possible? This sounds the most plausible approach to me. But it will revert layout changes made by the user when you drag the docking bar multiple times.
What do you think?
Von: Squeak-dev <squeak-dev-bounces at lists.squeakfoundation.org> im Auftrag von K K Subbu <kksubbu.ml at gmail.com>
Gesendet: Sonntag, 22. März 2020 16:29 Uhr
An: The general-purpose Squeak developers list
Betreff: [squeak-dev] DockingBarMorph errors?
I encountered a strange problem by accident with the main docking bar in
Squeak 6.0alpha-19541 (linux VM):
* bring up halo menu on the main docking bar
* click on pick icon and click again in the same place.
* Expected behavior - the main docking bar remains unchanged
* Actual behavior - menu items are packed to the left.
Does anyone else see the same behavior?
I also saw another anomaly:
* If I click ctrl-1 ctrl-2 etc, the drop down menu appears below
Project, Tools etc. But if I press ctrl-0, the drop down menu remains in
place but the text cursor switches to the Search Bar. This is confusing
Regards .. Subbu
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Squeak-dev