Issue: Floating toolbars could be "silently" collapsed. (Toolbar.collapsed would toggle, but nothing visually would happen)
Solution: Forced collapsed to only be changed if the toolbar is not floating.
Issue: Refreshing the toolbar visually uncollapses all toolbars, even though collapsed is still true
Solution: Updated offset and offsetTarget in ToolbarElement.Refresh.
Issue: Dragging a collapsed toolbar would not change offsetTarget
Solution: Set collapsed to false when dragging so offsetTarget gets set properly. offsetTarget is also set to zero if the toolbar is floating.
Fixes a few issues with collapsing toolbars.
Issue: Floating toolbars could be "silently" collapsed. (
Toolbar.collapsed
would toggle, but nothing visually would happen) Solution: Forcedcollapsed
to only be changed if the toolbar is not floating.Issue: Refreshing the toolbar visually uncollapses all toolbars, even though
collapsed
is still true Solution: Updatedoffset
andoffsetTarget
inToolbarElement.Refresh
.Issue: Dragging a collapsed toolbar would not change
offsetTarget
Solution: Setcollapsed
to false when dragging sooffsetTarget
gets set properly.offsetTarget
is also set to zero if the toolbar is floating.