Question on Padding

Answered
0
0

I have an html panel with a scroll bar to display some content. However my users want the content to not bump up against the scrollbar.  So I thought I could set the paddingRight property on the html panel and that would fix it.

But nothing seems to fix this.  I’ve tried setting in code, in the designer, and also tried overriding CSS w/ an eval statement, and nothing seems to work or make any different.   I also tried margin too.

See the screenshot please. I would like to adjust the interior layout of the content in the html panel so that it does not invade the area that I highlighted in red in the screenshot.

 

How can I achieve this?

 

Thanks in advance!

 

EDIT: here is the eval code I tried:

htmlPanel.Eval(“this.getContentElement().setStyle(‘padding-right’,’50px’)”)

 

 

 

  • You must to post comments
Best Answer
0
0

Thank you – that worked perfectly.

vb.net:

htmlView.Eval(“this.getChildControl(“”pane””).getChildControl(“”scrollbar-y””).setMarginLeft(17)”)

 

 

  • You must to post comments
0
0

Try this:

this.getChildControl(“pane”).getChildControl(“scrollbar-y”).setMarginLeft(10)

Where “this” is the HtmlPanel.

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.