-
Notifications
You must be signed in to change notification settings - Fork 18
paper-menu-button misaligned if inserted in core-toobar #57
Comments
Setting to zero the font-size of the paper-menu-button looks working as workaround.
|
Most likely this was just fixed in the most recent version of the JS elements, and once we do a roll we will get the update as well. I messed around with it a little bit and could not figure out exactly what was causing the issue, the styles appear to be the same :(. If it is not fixed in the next roll we can revisit this. |
Comparing the properties of the JS versions vs the Dart one I see only a difference on the paper-menu-button heights. Taking all the CSS properties (also the inherited one) here the differences: Dart: I hope this somehow helps. |
Ya, I can see that the height is a bit taller, that in itself is not an issue since its vertically centered but the core-icon is not vertically centered inside it. In the dart version the inherited font size of 1.3em is causing the button to be 26px tall instead of 24px tall, but the javascript version is getting this same inherited style so that is confusing. Overriding the font size to 1rem like in core-icon-button does fix it but I feel like its hiding the actual issue. Also it may be hard to get that added to the JS repo since they aren't experiencing the issue. All that being said I would still not be surprised if during the next roll it gets magically fixed... |
I'm using a paper-menu-button inside a core-toobar but it is a pixel under the middle line (in some cases they become two) making it misaligned with other elements.
I've checked with the polymer version and it works fine.
Here the Polymer example where a paper-menu-button and a core-icon-button are side by side: http://jsbin.com/zajujegonele/1/
Here the dart-polymer code:
The text was updated successfully, but these errors were encountered: