GWT -如何设置垂直滚动条的左侧



我只是想知道…如何设置垂直滚动条从右到左的ScrollPanel在纯GWT?或者可能有一些可以随意走动的地方?

谢谢

如果你只是想改变滚动条的滚动面板的方向,你可以添加以下css规则的面板

direction: rtl;

我累了这个,它工作。看看这段代码。

ScrollPanel scrollPanel = new ScrollPanel(new Label("I am just wondering... How to set vertical scroll bar from right to left side for ScrollPanel in pure GWT? Or maybe there is some alt walk-around?I am just wondering... How to set vertical scroll bar from right to left side for ScrollPanel in pure GWT? Or maybe there is some alt walk-around?I am just wondering... How to set vertical scroll bar from right to left side for ScrollPanel in pure GWT? Or maybe there is some alt walk-around?I am just wondering... How to set vertical scroll bar from right to left side for ScrollPanel in pure GWT? Or maybe there is some alt walk-around?I am just wondering... How to set vertical scroll bar from right to left side for ScrollPanel in pure GWT? Or maybe there is some alt walk-around?I am just wondering... How to set vertical scroll bar from right to left side for ScrollPanel in pure GWT? Or maybe there is some alt walk-around?I am just wondering... How to set vertical scroll bar from right to left side for ScrollPanel in pure GWT? Or maybe there is some alt walk-around?I am just wondering... How to set vertical scroll bar from right to left side for ScrollPanel in pure GWT? Or maybe there is some alt walk-around?I am just wondering... How to set vertical scroll bar from right to left side for ScrollPanel in pure GWT? Or maybe there is some alt walk-around?I am just wondering... How to set vertical scroll bar from right to left side for ScrollPanel in pure GWT? Or maybe there is some alt walk-around?I am just wondering... How to set vertical scroll bar from right to left side for ScrollPanel in pure GWT? Or maybe there is some alt walk-around?I am just wondering... How to set vertical scroll bar from right to left side for ScrollPanel in pure GWT? Or maybe there is some alt walk-around?I am just wondering... How to set vertical scroll bar from right to left side for ScrollPanel in pure GWT? Or maybe there is some alt walk-around?"));
    scrollPanel.setSize("100px", "100px");
    scrollPanel.setTitle("mypanel");
    scrollPanel.addStyleName("dit");
    RootPanel.get().add(scrollPanel);

和CSS类类似

.dit {
    direction: rtl;
    text-align: left !important; /*Only if you want to set text alignment to left.*/
}

(仅在chrome中测试)

最新更新