Jump to content

Uniscrollbox - Hide horizontal bar


clement

Recommended Posts

Hi,

 

The Horizontal Bar is always active, even if not necessary. Any solution for hiding the horizontal bar in the latest version?

 

To reproduce the problem:

1) Drop one uniscrollbox in one form and set 'Align' to alClient.

2) Drop one unipanel into the scrollbox and set its 'Align' to alTop

3) Run the application.

 

http://forums.unigui.com/index.php?/topic/168-more-questions-and-improvements/

 

 

 

Thank You.

Link to comment
Share on other sites

  • 1 year later...

Hi, here is my suggestion:

myScrollBox.ClientEvents.ExtEvents.Values['afterrender']:='function afterrender(sender, eOpts) {sender.getEl().dom.style["overflow-x"]="hidden";;}';

Or

MyScrollBox -> ClientEvets -> ExtEvents -> function afterrender:

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

 

 

  • Like 1
Link to comment
Share on other sites

  • 2 years later...
On 5/23/2019 at 4:52 PM, JDDEV said:

Hi, here is my suggestion:

myScrollBox.ClientEvents.ExtEvents.Values['afterrender']:='function afterrender(sender, eOpts) {sender.getEl().dom.style["overflow-x"]="hidden";;}';

Or

MyScrollBox -> ClientEvets -> ExtEvents -> function afterrender:

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

 

 

Hello!

But I need to hide, on the contrary, the vertical scrollbar.
To do this, I added this:
 

sender.getEl().setStyle('overflow-y', 'hidden')


However, in this case, scrolling (scrolling) in UniScrollBox stops working in principle.
But I need scrolling to work (with the mouse wheel), but also not to see the vertical scroll bar.

How can this be done, what do I need?

Link to comment
Share on other sites

1 minute ago, Sherzod said:

Hello,

Can you make a simple testcase to check? 

Can't... :( Commercial project in out company.

You can try this code in any project, because this is standart UniScroolBox.

For Horizontal bar it's working. And for Vertical bar too.

But, after this not working scrolling in UniScrollBox...

Link to comment
Share on other sites

  • 9 months later...

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