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’)”)
Thank you – that worked perfectly.
vb.net:
htmlView.Eval(“this.getChildControl(“”pane””).getChildControl(“”scrollbar-y””).setMarginLeft(17)”)
Try this:
this.getChildControl(“pane”).getChildControl(“scrollbar-y”).setMarginLeft(10)
Where “this” is the HtmlPanel.
Please login first to submit.