Setting Horizontal scroll bar on top of scroll pane - jscrollpane

I am trying to set the scrollbar on JScrollPane. By default vertical scrollbar appear on right, and horizontal scrollbar appear on bottom of the content pane. I need to change the direction, i.e. vertical scrollbar on left, and horizontal scrollbar on top. I used the method
scrollPane.setComponentOrientation(ComponentOrientation.RIGHT_TO_LEFT);
that changes the vertical scrollbar appear on left, but unable to change the horizontal scrollbar to top. Can anyone help in this regard?

After looking at the available orientations:
java.awt.ComponentOrientation.LEFT_TO_RIGHT
java.awt.ComponentOrientation.RIGHT_TO_LEFT
java.awt.ComponentOrientation.UNKNOWN
it would seem that what you're trying to do isn't supported.
I would have to ask why you would want to do this anyway though? I would imagine that having a horizontal scrollbar at the top would have a detrimental effect on usability.
There may be a good reason why it's not supported.

Related

Bottom sheet width is half of the screen flutter

Flutter i am developing an app in 8 inch emulator. As you can see in the image my bottom sheet doesnt cover all the width. I tried to change constraints, containers width but nothing has changed.
i will add code in comment
Did you try getting rid of the top Center? You don't include the rest of the modal, so the combo of the Center, and perhaps some width constraint you have further down is limiting the width. Otherwise, include your full modal code in the question section, not the comments.

Scrollbar + any scroll widget bug on scrolling in web

I need to use Scrollbar widget for web as it enables scrollbar always on AND the ability to edit its size and width. I also have to use it with a child that is scrollable (singlechildescrollview, listview, etc), but after updating to flutter 2.2, I've seen that 2 scrollbars appear on screen and keeps buging the experience (can be seen when changing the size of the scrollbar in the parent).
I've tryed to disable the scrolling in the child, but its scrollbar still shows. I cant use the default scrollbar in the child, as its more geared towards mobile.
Fixed using rawascrollbar. It removes any padding when pressing on the side of the screen, and gives the ability to change the color of scrollbar (that way hides the child scroll). Better then the Scrollbar widget.

Flutter: from bottomModal to fullscreen page

I am looking to create in Flutter a modal dialog that slides in from the bottom and
Appears with a given height (eg. 1/3 of the screen)
Expands vertically if the user scrolls up on it (and shrinks until disappearing if the user scrolls down)
Provides some kind of callback or observable so that I can know when it reaches the top of the screen/parent. (I need this in order to create a back arrow on the top left corner of the panel itself)
Is there any way to achieve this?
I have found the package sliding_up_panel to be really nice, but lacking the third feature.
The SlidingUpPanel does actually have everything you need. You want to use the onPanelSlide property from it which will provide you the current % opened of the panel normalized ([0, 1.0]), so if you want to know when it reaches the top you, it's when its current position is at 1.0.
As an alternative, you may want to take a look at DraggableScrollableSheet widget, but IMO, SlidingUpPanel is more versatile.

Scroll horizontally on ionic with rtl list

I have a list in an RTL document. When I use ion-scroll for direction x it adds scroll to the left side of the content, which makes it impossible to scroll to the right. How can I fix this?

scroll bar in popup panel in GWT

I have a popup panel which opens on a button click event. Popup panel height should be fixed and if contents of popup panel exceeds the height of popup panel, then a vertical scroll bar needs to be attached to it, and i should be able to scroll it to see the contents. I am displaying a flex table in the pop up and the flex table rows and columns vary for different kinds of inputs. so, if the flex table size is bigger than pop up, scroll bar should appear to pop up. I tried with overflow:scroll in my css, but it didn't work. is it because of the flex table? How to achieve this when i have different widgets place in my pop up? Can any body please help?
Thanks,
Sreenivas
Try adding a ScrollPanel into your PopupPanel and then a FlexTable into your ScrollPanel.
You can find doc - http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/user/client/ui/ScrollPanel.html
Example - http://examples.roughian.com/index.htm#Panels~ScrollPanel