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

WebMenu 1st Time Render Glitch #104

Closed
Sowrinator opened this issue Mar 19, 2014 · 10 comments
Closed

WebMenu 1st Time Render Glitch #104

Sowrinator opened this issue Mar 19, 2014 · 10 comments

Comments

@Sowrinator
Copy link

Whenever a WebMenu is created within a WebMenu the second menu will (only on first selection) will glitch to be bigger and then on re-selection will be the normal size. It will also do it again if the WebMenu is resized. (Not replicable on linux)
submenu-glitch

It can also be simulated on the demo by minimizing it and trying to select a sub-WebMenu.

submenu-glitch-weblafdemo

@mgarin mgarin added the bug label Mar 19, 2014
@mgarin mgarin added this to the Small issues milestone Mar 19, 2014
@mgarin mgarin self-assigned this Mar 19, 2014
@mgarin
Copy link
Owner

mgarin commented Mar 19, 2014

That happens on the latest version of JDK 7, right?

@mgarin mgarin added the JDK 7 label Mar 19, 2014
@mgarin
Copy link
Owner

mgarin commented Mar 19, 2014

I have found the cause of this issue, fix will be available in v1.27 update.

It seems that something changed in 40+ JDK 7 versions so that opacity of transparent window is not updated automatically on first display so i had to set it manually. A bit dirty but it is working.

@Sowrinator
Copy link
Author

Awesome! Yes it was JDK 7.

@Sowrinator Sowrinator reopened this Mar 19, 2014
mgarin added a commit that referenced this issue Apr 1, 2014
…ange options

#105 - WebButton decoration is now handled a bit differently when it is inside WebButtonGroup
#72 #79 #104 - Fixed window transparency update method for later versions of JDK 7
#96 - WebButtonGroup "add" methods fix and proper style updates for various cases
#95 - WebScrollPane method to hide scroll bar buttons added
#93 - WebPopupPainter bottom side corner fix
#91 - Small code refactoring
#90 - WebInternalFrame buttons made non-focusable
#55 - "OptionPane.isYesLast" is now set to true for Mac OS X
StyleManager initialization is not required anymore for Web-styled components creation
StyleManager now supports custom component painters
StyleManager now has a better support for custom settings
StyleManager skin file parsing improvements
9-patch-based painters added for JLabel and JPanel components
JLabel painter support added
WebVerticalLabel painter support added
WebBreadcrumbLabel painter support added
WebBreadcrumbPanel painter support added
WebAsyncTree root sorting/filtering do not cause an exception anymore
NinePatchEditor image rotation features added
WebButtonUI margin fix for hidden sides case
NinePatchIcon cache initialization fix
Improved text representation for UniqueNode
WebListUI rollover cell highlight fix
Default SettingsProcessors small bugfixes
Demo application heavy animation switch fix
Version files updated
@mgarin
Copy link
Owner

mgarin commented Apr 3, 2014

Should be fixed now with v1.27 update.
I also strongly recommend reading notes about StyleManager before updating.

@mgarin mgarin closed this as completed Apr 3, 2014
@AndrewC-B
Copy link

I'm still seeing this issue with WebLaF 1.27 on OS X 10.9, under JDK 1.7. I can't reproduce this on Windows.

screen shot 2014-05-29 at 5 48 41 pm

Doing JFrame.setDefaultLookAndFeelDecorated(true) resolves the issue for the menu, but causes issues with the frame. Do you think it could be something to do with window's drop shadow?

screen shot 2014-05-29 at 5 57 16 pm

EDIT: Actually, setting the frame to decorated only seems to indirectly fix the menus. I set the shade width of the frame to 0:

screen shot 2014-05-29 at 6 17 14 pm

@mgarin
Copy link
Owner

mgarin commented May 29, 2014

Menu is fine on the 2nd screenshot because it is displayed inside of the frame on a layered pane instead of a separate window and fully rendered within that window. That is a lightweight popup Swing feature "in action". So it is not related to the actual window transparency issue you are suffering from.

I have added a few more fixes into currently developed version, could you test it on your system?
Here is the pre-release library build link: http://weblookandfeel.com/downloads/gpl/weblaf-1.28.jar
This issue might be already fixed in this build.

@mgarin mgarin reopened this May 29, 2014
@AndrewC-B
Copy link

Awesome, everything's fine in the new build, cheers! :D

@mgarin
Copy link
Owner

mgarin commented May 30, 2014

Great, I will be closing this one as soon as v1.28 is released.
Make sure you update with proper v1.28 distrib later :)

@AndrewC-B
Copy link

Cheers! Will do :)

@mgarin mgarin added the fixed label Jun 26, 2014
@mgarin
Copy link
Owner

mgarin commented Jun 26, 2014

Fix is now available in v1.28 update:
https://github.com/mgarin/weblaf/releases/tag/v1.28

@mgarin mgarin closed this as completed Jun 26, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants