Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (777)
Games in Android Showcase (231)
games submitted by our members
Games in WIP (856)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  libGDX Scene2D.ui ScrollPane doesn't move  (Read 9341 times)
0 Members and 1 Guest are viewing this topic.
Offline twinflyer

Senior Newbie

Exp: 2 years

« Posted 2013-04-04 18:09:14 »

Hi everybody,
I've got some Problems with the Scene2D.ui ScrollPane.

I have a Table witch holds several Actors like TextFields, Buttons and Labels. Then I create a new ScrollPane based on that Table. The vertical scrollbar moves according to my mouse/wheel movement but the content itself isn't moving.

As you can see: The Bar moves but the Content doesn't.

The code for the ScrollPane:

Window w = new Window("someTitle", someWindowStyle);

Table content = new Table();

//'content' is filled with some Actors

ScrollPane scroll = new ScrollPane(content, someScrollPaneStyle);


That's a shorted version of course but basically that's how I do it.

Is this error known? I tried it for quite a long time now but it's not working and I have no idea why.
I hope there's someone around here who can help me with that problem.
If you need more information please let me know.

Offline ReBirth
« Reply #1 - Posted 2013-04-05 02:11:19 »

Set table to not fill parent, set the size, and add it to stage some Group or Stage. Make sure your table is added too.

Offline Nate

« JGO Bitwise Duke »

Medals: 167
Projects: 4
Exp: 14 years

Esoteric Software

« Reply #2 - Posted 2013-04-05 05:00:48 »

Are you calling stage.act()?

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Phibedy

Senior Devvie

Medals: 9

« Reply #3 - Posted 2013-04-05 07:27:23 »

thx stage.act() was missing  Grin
Offline ReBirth
« Reply #4 - Posted 2013-04-05 07:36:14 »

Noob tip: next time you have something on libgdx, head to the repo site and look on the component's test class Grin

Pages: [1]
  ignore  |  Print  

hadezbladez (289 views)
2018-11-16 13:46:03

hadezbladez (157 views)
2018-11-16 13:41:33

hadezbladez (290 views)
2018-11-16 13:35:35

hadezbladez (71 views)
2018-11-16 13:32:03

EgonOlsen (2150 views)
2018-06-10 19:43:48

EgonOlsen (2152 views)
2018-06-10 19:43:44

EgonOlsen (1364 views)
2018-06-10 19:43:20

DesertCoockie (1983 views)
2018-05-13 18:23:11

nelsongames (1600 views)
2018-04-24 18:15:36

nelsongames (2248 views)
2018-04-24 18:14:32
Deployment and Packaging
by mudlee
2018-08-22 18:09:50

Java Gaming Resources
by gouessej
2018-08-22 08:19:41

Deployment and Packaging
by gouessej
2018-08-22 08:04:08

Deployment and Packaging
by gouessej
2018-08-22 08:03:45

Deployment and Packaging
by philfrei
2018-08-20 02:33:38

Deployment and Packaging
by philfrei
2018-08-20 02:29:55

Deployment and Packaging
by philfrei
2018-08-19 23:56:20

Deployment and Packaging
by philfrei
2018-08-19 23:54:46 is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!