@edwardsmarkf
@edwardsmarkf
Forum Replies Created
-
AuthorPosts
-
edwardsmarkfMember
https://codepen.io/edwardsmarkf/pen/zYoqeoY
sorry, i am not explaining myself properly. let me please try again.
my placeholder is defined like this:
Please select whatever coffee you want to drink
but my placeholder value is being truncated:
Please select whatever coffee you want…
the only solution i see is doing something like this:window.onload = () => { document.getElementsByTagName('DIV')[0].style.width='600px'; }
i am hoping that you have a better solution.
edwardsmarkfMemberhello –
this could potentially confuse a new person since one of the most significant features of the Combobox is the ability for a user to be able to add whatever value they want in addition to being able to select one.
i am thinking of a workaround using a “hidden” field like so:
https://codepen.io/edwardsmarkf/pen/YzpqRdg
what do you think?
and PLEASE seriously consider changing the default behavior to submit anything the user enters.edwardsmarkfMemberhello – i apologize, but i cannot get your solution to work properly for me:
https://codepen.io/edwardsmarkf/pen/zYoqeoYedwardsmarkfMemberbad solution: https://codepen.io/edwardsmarkf/pen/zYoqeoY
i hope you can come up with something better.edwardsmarkfMemberHORRIBLE SOLUTION: (for now)
window.onload = () => { document.getElementsByTagName('DIV')[5].style.width='400px';
edwardsmarkfMembersolution – https://codepen.io/edwardsmarkf/pen/abmppNK?editors=1111
edwardsmarkfMemberedwardsmarkfMemberhttps://codepen.io/edwardsmarkf/pen/abmppNK?editors=1111 — getting closer…. 😁
edwardsmarkfMembercould you please show me a working example of setting top/left?
edwardsmarkfMemberhi – actually this way is AWFUL – notice that you can actually see the window move to the 5px position then move to the correct new position.
how can i properly locate the window to where i desire it to go? where is that “left: 5px;” being set and how may i override it?edwardsmarkfMemberreposting question here: https://www.htmlelements.com/forums/topic/locating-minimized-window/
edwardsmarkfMemberreposting question here: https://www.htmlelements.com/forums/topic/locating-minimized-window/
edwardsmarkfMembersorry i meant is it possible to click-DRAG a minimized window?
edwardsmarkfMemberthis works, sort of:
window.onload = () => { const smartWindow = document.querySelector('smart-window'); smartWindow.headerButtons = ['collapse', 'minimize', 'pin']; smartWindow.addEventListener('minimize', (event) => { setTimeout( () => { document.querySelector('smart-window').style.left = '300px' ; }, 100); }); };
edwardsmarkfMemberthanks, but when i try to set the top/left properties and open MINIMIZED, it seems to override whatever top/left properties i set.
also, when using the ‘minimize’ event, that event triggers before the minimize takes place, and overrides it there as well. i could possibly have some sort of timeout event, but i wanted to ask here first to see if there is a better way? -
AuthorPosts