Comments (3)
Reproducible demo:
import lwjgui.scene.Scene;
import lwjgui.scene.Window;
import lwjgui.scene.control.Button;
import lwjgui.scene.control.ScrollPane;
import lwjgui.scene.layout.BorderPane;
import lwjgui.scene.layout.StackPane;
import lwjgui.scene.layout.VBox;
public class Bug extends LWJGUIApplication {
public static final int WIDTH = 300;
public static final int HEIGHT = 300;
public static void main(String[] args) {
launch(args);
}
@Override
public void start(String[] args, Window window) {
StackPane root = new StackPane();
VBox box = new VBox();
ScrollPane scrollPane = new ScrollPane();
scrollPane.setPrefHeight(HEIGHT);
scrollPane.setContent(box);
root.getChildren().add(scrollPane);
for (int i = 0; i < 6; i++) {
BorderPane wrapper = new BorderPane();
wrapper.setLeft(new Button("Click"));
wrapper.setPrefHeight(25);
wrapper.setFillToParentWidth(true);
box.getChildren().add(wrapper);
}
window.setScene(new Scene(root, WIDTH, HEIGHT));
window.show();
}
@Override
protected void run() {}
}
The "fix" I'm using for now is:
HBox wrapper = new HBox(); // just don't use BorderPane in scroll-panes
wrapper.getChildren().add(new Button("Click"));
from lwjgui.
Hi, thanks for the ticket. Currently, I am not having much free time, and the time I do have I seem to be spending it more on my JadeFX project (successor to LWJGUI). JadeFX currently does have BorderPane implementation, but it is missing many standard control objects.
I can get a fix out for this, but might need some time.
from lwjgui.
No rush. If JadeFX is the successor I'll happily switch to it once its more complete. For now I have some workarounds.
from lwjgui.
Related Issues (20)
- Graphic issues with SplitPane HOT 6
- TreeItem's text not affected by CSS HOT 2
- TextField consumes up and down arrow key presses HOT 3
- Key press events create new event objects for each node HOT 6
- TextField control receives KeyPress events when not in editing HOT 4
- borderPane.setRight appears on the left side HOT 4
- Correct rendering when resizing HOT 2
- Triple click in textfield causing exception HOT 1
- Add image on button HOT 4
- Where are it's docs? HOT 1
- Issue using trees HOT 2
- Custom widget? HOT 2
- ScrollPane content does not adhere to children/parent model
- scrollpane doesn't work with ComboBox boxes
- NoSuchMethodError in NanoVG HOT 1
- Add a slider HOT 11
- Gradle setup HOT 2
- Image HOT 1
- I can't import LWJGUI in maven HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lwjgui.