Hi Tim,
> So, I'm guessing that the vcenter tags would need to be within the flex tags for it to work correctly?
Yup.
> Is there a way that I could troubleshoot which part is the one that is potentially causing the issue?
One way to get a better sense of how much space a particular element is taking up is to put style="background:red" on it.
> As you may have noticed, I did try to remove the text from the icons and I'm not sure if I
> did it correctly, so that might be causing an issue too? I'm wondering if despite removing
> the text, it has left the empty space where the text would be and thus thrown it out of
> alignment?
Yes, if you just remove the text from the inside of the <moi:CommandButton> elements it's still going to have space for a blank line there.
So the code for a <moi:CommandButton> is going to come from the template file CommandButton.htm, there's an img and a div in it for the text.
If you go to the <style> section up at the top of CommandBar.htm if you add this rule it should get rid of the button text line entirely:
code:
moi\:CommandButton > div, moi\:CommandMenuButton > div, moi\:CommandSplitButton > div {
display:none;
}
or you could also go to templates CommandButton.htm, CommandMenuButton.htm, and CommandSplitButton.htm and remove the <div> from there as well. The way the controls work is that when there is a custom element it looks to see if there is an .htm file with that same name and if there is it splices in the contents of that file for the inside of the control.
- Michael