erich.wanker Posted April 10, 2017 Share Posted April 10, 2017 Hello, i try to disable the scrollbar of a UniDBMemo AND change his size- the Memo should be displayed like a uniDBEdit .. and when the user puts the mouse over the component- it should change its size and show if neccesary a scrollbar ... after leave the component - it should reduce the sice and disable the scrollbar.. I Tryed out: BUT DESNT WORK !!. UniDBMemo1.ClientEvent.ExtEvents: function afterrender(sender, eOpts) { sender.getEl().dom.style["overflow"]="hidden"; } function mouseout(sender, eOpts) { sender.getEl().dom.style["overflow"]="hidden"; sender.getEl().style.height="22px"; } function mouseover(sender, eOpts) { sender.getEl().dom.style["overflow"]="auto"; sender.getEl().style.height="300px"; } Quote Link to comment Share on other sites More sharing options...
Sherzod Posted April 10, 2017 Share Posted April 10, 2017 Hi Erich, Try this: function afterrender(sender, eOpts) { var me = sender; me.inputEl.dom.style["overflow"]="hidden"; me.setHeight(22); } function mouseout(sender, eOpts) { var me = sender; me.inputEl.dom.style["overflow"]="hidden"; me.setHeight(22); } function mouseover(sender, eOpts) { var me = sender; me.inputEl.dom.style["overflow"]="auto"; me.setHeight(300); } Best regards. Quote Link to comment Share on other sites More sharing options...
erich.wanker Posted April 10, 2017 Author Share Posted April 10, 2017 hi .. thank you .. it works :-) just another question: i have a lot if uniDBmemos among themselves ... now i have a problem with the z-index ... As Example if the first UniDBMemo "expande" - the second anf third are "over" the first uniDBMemo .. is where a way to set the selected uniDBMeno to the top??? ThanX Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.