GWT - 如何将垂直滚动条设置为左侧?

时间:2013-05-31 20:06:16

标签: html css gwt

我只是想知道......如何在纯GWT中为ScrollPanel设置从右到左的垂直滚动条?或者也许有一些alt walk-around?

由于

1 个答案:

答案 0 :(得分:2)

如果您只想更改滚动面板滚动条的方向,可以将以下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.*/
}

(仅在镀铬中测试过。)