Jump to content

Recommended Posts

Posted

Hello,

after Update to 0.98.0.1116 the following lines not working:

 

    UniHTMLFrame1.HTML.Clear;
    UniHTMLFrame1.HTML.Append('<html><head><title>scoller</title>');
    UniHTMLFrame1.HTML.Append('<style type="text/css"> DIV#' +uniscrollbox1.JSName+ '_id> DIV {overflow-x: hidden !important;}</style>');
    UniHTMLFrame1.HTML.Append('<style type="text/css"> DIV#' +uniscrollbox2.JSName+ '_id> DIV {overflow-x: hidden !important;}</style>');
 

any ideas how to solve this?

 

ThanX

Erich

Posted

Hello DelphiDeveloper,

 

ThanX for suggestions .. but your tip also didn´t work anymore ...

It seems that uniScrollbox has a property less - since new update .. 

 

if i use

UniSession.AddJS(uniscrollbox1.JSName + '.setBodyStyle("overflow-X:hidden !important");');

i got error: "undefined is not a function"

Posted
i added in uni-xtheme-gray.css:
 
.x-container {
overflow-x:hidden !important;
}

 

 

works for me ;-) .. seems that no other control is involved for this setting

Posted

Better, you can do like so:

UniSession.AddJS(uniscrollbox1.JSName + '.el.setStyle("overflow-x", "hidden");');

Or:

function afterrender(sender, eOpts)
{
  sender.el.setStyle('overflow-x', 'hidden');
}

..

 

Best regards.

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...