Command Bar Issue
All  1-6  7-9

Previous
Next
 From:  Whiteman Dynamic (TIM_WHITEMAN)
9616.7 In reply to 9616.6 
Hi Michael,

Thank you for your kind response, I do apologise for my slightly delayed response. I'm currently using version 3.
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
9616.8 In reply to 9616.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:

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
 From:  Whiteman Dynamic (TIM_WHITEMAN)
9616.9 In reply to 9616.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
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged
 

Reply to All Reply to All

 

 
 
Show messages: All  1-6  7-9