hobbyquaker / node-red-contrib-polymer

A Polymer based Dashboard UI for Node-RED
MIT License
21 stars 0 forks source link

Dropdown - weird look #17

Open M0ebiu5 opened 7 years ago

M0ebiu5 commented 7 years ago

The dropdown box is not the same size as the dropdown button. Also its located on the rightmost side of the screen. Tested with chrome 57.xxx

Thanks for this great contribution!

hobbyquaker commented 7 years ago

Implemented more options for the dropdown-node. If this is satisfying for you pls close the issue :)

M0ebiu5 commented 7 years ago

MenuWidth does not change any obvious thing :). The item list should be as wide as the parent and if not, it should appear near the place where the user clicked. The item list covers the parent - it should not do that, so you still can read what you are about to change.

clipboard02

hobbyquaker commented 7 years ago

Try to put e.g. 300px in the menuWidth option, that should work. I just took a look, repositioning or getting the menu to the same width isn't that easy... Someone already opened an issue here: https://github.com/PolymerElements/paper-dropdown-menu/issues/229 Only possibility I see right now is to create an own dropdown element, but that's quite much effort... I'd like to get all the widgets from the todo running, when that is done I will look into this again.

M0ebiu5 commented 7 years ago

It's a good idea to postpone it, if there is already an issue open - maybe it's solved until then. Your project -> you decide. I'm just trying to help with some ideas and a little testing...