Comments (3)
Works for me.
PopupMenu m1 = new PopupMenu();
m1.addItem(new MenuItem("A1"));
m1.addItem(new MenuItem("B1"));
m1.addItem(new MenuItem("C1"));
PopupMenu m2 = new PopupMenu();
m2.addItem(new MenuItem("A2"));
m2.addItem(new MenuItem("B2"));
m2.addItem(new MenuItem("C2"));
m1.setPosition(100, 100);
m2.setPosition(100, 100, Align.topLeft);
stage.addActor(m1);
stage.addActor(m2);
Both setPosition
methods are defined in actor, I don't know why it wouldn't work. You should create SSCCE
from vis-ui.
It didn't work for me because I was positioning PopupMenu before adding any items to it. I just swapped some code and now it works.
from vis-ui.
SetPosition with alignment uses widget width and height so that's why it won't work before adding items, size is unknown at that point. Nothing can be done with this.
from vis-ui.
Related Issues (20)
- Tab and ScrollPane visual bug HOT 3
- IllegalArgumentException application crash when typing name in FileChooser "Open" dialog HOT 2
- Update to LibGDX 1.9.14 HOT 1
- VisUI Tixel Skin, where'd it go? HOT 3
- VisImageButton getImage().setColor(color) does not work. HOT 4
- VisUI Draggable on Grid HOT 3
- Add rich text HOT 2
- Tree node is removed but the container remains HOT 3
- Build issue default startup LibGDX project with GWT and VisUI HOT 3
- Tooltip Issue HOT 3
- Illegal reflective access operation with FileChooser
- Enhance VisWindow HOT 2
- Window close should have an close callback listener HOT 1
- [VisUI Request] Set text orientation in VisImageTextButton HOT 1
- Support 'center' alignments in ToastManager
- TabbedPane clicking a tab makes it invisible HOT 3
- VisUI 1.5.2 release HOT 2
- VisUI 1.5.3 release
- Some enhanced suggestions
- How to render? HOT 1
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 vis-ui.