Jump to content

UniDBMemo1 -> style["overflow"]="hidden" ...


erich.wanker

Recommended Posts

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"; 
}
 
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...