MoI discussion forum
MoI discussion forum

Full Version: Command Bar Issue

Show messages: All  1-6  7-9

From: Whiteman Dynamic (TIM_WHITEMAN)
17 Dec 2019   [#7] In reply to [#6]
Hi Michael,

Thank you for your kind response, I do apologise for my slightly delayed response. I'm currently using version 3.
From: Michael Gibson
18 Dec 2019   [#8] In reply to [#7]
Hi Tim, so some of the difficulty in centering things is that the standard CommandBar is actually designed specifically to make command buttons drop down to the bottom instead of being centered. That's so they can make use of a thing called "Fitt's Law" basically meaning that when a button is flush against the bottom of the screen it will be targeted if you slam the mouse button down against the bottom of the screen where it stops.

If the buttons are centered, then that might no longer hold true, there might instead be a little bit of space below them so they might not be targeted when the mouse stops against the edge of the screen.

But if you wanted to make things centered like you're asking about it would probably be easiest to restructure it a bit and take out the bottom-aligning stuff and replace it with centering instead. I've attached a reworked CommandBar.htm that does that, does it do what you wanted? This one is set up for v3, for v4 the flexbox properties are similar but have slightly different names.

- Michael

Attachments:
CommandBar.htm


From: Whiteman Dynamic (TIM_WHITEMAN)
23 Dec 2019   [#9] In reply to [#8]
Hi Michael,

Thank you for your kind explanation of "Fitt's Law", an interesting solution and I can see that it works well in this case.

You're an absolute gentleman Michael as always! Thank you so much for the generosity of your time and knowledge in helping me fix the Command Bar. The attachment that you provided is exactly what I was trying to achieve!

I wish you a happy and relaxing Christmas holiday with your family.

Kind regards,

Tim

Show messages: All  1-6  7-9