Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Menubars confuse undecorator #6

Open
LiSongMWO opened this issue Apr 23, 2014 · 2 comments
Open

[Bug] Menubars confuse undecorator #6

LiSongMWO opened this issue Apr 23, 2014 · 2 comments

Comments

@LiSongMWO
Copy link

It seems that menubars cause undecorator to barf and fail at determining the correct area to place the decoration:
image

The demo projects work as expected. I tried to just swap the fxml file to mine in the demo project and comment out any lines that causes failures at startup. It still renders as above so I believe this to be a bug.

The FXML file that is causing this behavior is here: https://gist.github.com/EmilyBjoerk/1488e748c89be75e8bee

@in-sideFX
Copy link
Owner

Hi Emily,
For your usage, I recommend to add a padding on top of your border pane, and set some minimal sizes on your main content, such as:
menubar

The result will be better:
menubarresult

Hope this helps,
Arno.

@LiSongMWO
Copy link
Author

I ended up rolling my own frame decoration based on a border pane. It
doesn't need this workaround.

2014-04-29 9:44 GMT+02:00 in-sideFX [email protected]:

Hi Emily,
For your usage, I recommend to add a padding on top of your border pane,
and set some minimal sizes on your main content, such as:
[image: menubar]https://cloud.githubusercontent.com/assets/3024670/2826538/fc6e1284-cf71-11e3-8288-b8f2f92a92e9.png

The result will be better:
[image: menubarresult]https://cloud.githubusercontent.com/assets/3024670/2826549/05a067a8-cf72-11e3-9b28-46d08e5e1fc5.png

Hope this helps,
Arno.


Reply to this email directly or view it on GitHubhttps://github.com//issues/6#issuecomment-41649380
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants