Skip to content
This repository has been archived by the owner on Jul 10, 2018. It is now read-only.

Retina 200% #13

Closed
plingsi opened this issue Jan 28, 2017 · 5 comments
Closed

Retina 200% #13

plingsi opened this issue Jan 28, 2017 · 5 comments

Comments

@plingsi
Copy link

plingsi commented Jan 28, 2017

When running the ribbon application on a Hi DPI 200% I get the following result:
image
The task menu is behind. How can I fix this?

@kirill-grouchnikov
Copy link
Owner

Brevity is not very friendly for bug reports.

What is the version of Substance / Flamingo that you're using?
What OS version you're running?
What Java version you're running?
What exactly is Hi DPI 200%?
What is "task menu is behind"?

Also, to make things much easier I'd need to see the complete standalone code for this bug report.

@plingsi
Copy link
Author

plingsi commented Jan 30, 2017

Sorry for my short post!
I am using the latest builds from drop on Windows 10 with JDK jdk1.8.0_77. My screen resolution is 2880 x 1800 with a scaling factor of 200% (Recomended by Windows). As you can see in the Picture from the first post the "Task" height should be larger. The code is as follows:

private void createRibbon() {
JRibbonBand[] homeBandArray = new JRibbonBand[1];
JRibbonBand mouse = new JRibbonBand("Band", new EmptyResizableIcon(16));
mouse.setResizePolicies(CoreRibbonResizePolicies.getCorePoliciesNone(mouse));
mouse.startGroup();
JCommandToggleButton button = new JCommandToggleButton("Button", ImageWrapperResizableIcon.getIcon(getClass().getResource("/images/ribbonbar/length.png"), new Dimension(64, 64)));
mouse.addCommandButton(button, RibbonElementPriority.TOP);
homeBandArray[0] = mouse;
RibbonTask home = new RibbonTask("Task", homeBandArray);
this.getRibbon().addTask(home);
}

Regards,
Erling

@kirill-grouchnikov
Copy link
Owner

Ah yes. I see it now.

@kirill-grouchnikov
Copy link
Owner

Also see kirill-grouchnikov/flamingo#2

@kirill-grouchnikov
Copy link
Owner

This particular issue should be addressed in the latest prebuilts of Flamingo and Substance Flamingo plugin (you'll need both). The rest of the work will be done a bit later in February / March as part of the other issue.

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

No branches or pull requests

2 participants