Missing tabs in editor

Having trouble installing <oXygen/>? Got a bug to report? Post it all here.
odeon
Posts: 45
Joined: Mon Mar 12, 2007 1:56 am
Location: Sweden

Missing tabs in editor

Post by odeon » Tue Feb 25, 2020 3:22 pm

Hi,

I'm running oXygen XML Editor v 22.0 on Ubuntu 19.10 with the Cinnamon desktop. I've noticed a little bug in displaying open tabs in the editor - with more tabs open than the editor width allows, the rightmost tabs aren't displayed and there will be a space between the rightmost visible tab and the dropdown menu (see screenshots), erroneously suggesting that there are no more documents open.

Here's a screenhot that shows the actual open documents - note that some appear to have no tabs:

Image

This made me think that I had no more documents open to the right:

Image

But hitting the right arrow gives me the next open document:

Image

I thought I had mistakenly closed many of the open documents until I hit the open documents dropdown list and realised that they were still there.

This behaviour appears to be new to version 22.0, possibly because the JVM is new.

As always, thanks for a great editor!

Best,

/Ari

adrian
Posts: 2650
Joined: Tue May 17, 2005 4:01 pm

Re: Missing tabs in editor

Post by adrian » Tue Feb 25, 2020 4:27 pm

Hello,

Thank you for letting us know about this.
Do you have a high screen resolution with text scaling enabled?
We can reproduce the issue even on Windows, with OpenJDK 13, but only with scaling enabled. So it seems to be scaling/HiDPI related.
I've logged an issue to investigate and fix the problem. For future reference it is issue EXM-45108.
We will notify this thread when it is fixed.

Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com

odeon
Posts: 45
Joined: Mon Mar 12, 2007 1:56 am
Location: Sweden

Re: Missing tabs in editor

Post by odeon » Tue Feb 25, 2020 6:54 pm

Hi Adrian,

Yes, I have a 4k screen and had to manually add

Code: Select all

-Dsun.java2d.uiScale=2
to vmoptions since oXygen no longer seems to scale up automatically - the earlier versions recognised my screen resolution and scaling (I'm scaling everything x2) but 22.0 does not. It's a bit of an annoyance - I have automatic scaling enabled on Cinnamon so when I dock to a 28" screen, the scaling factor is 1 and 2 if I use the 15" laptop screen, but oXygen now ignores this because of the manually set vmoption.

First-world problems, I guess. :)

Best,

/Ari

adrian
Posts: 2650
Joined: Tue May 17, 2005 4:01 pm

Re: Missing tabs in editor

Post by adrian » Fri Feb 28, 2020 4:43 pm

Hi,

That's actually Java that you're instructing to use 2x (200%) scaling with "-Dsun.java2d.uiScale=2". Oxygen uses a different scaling property. In turn Oxygen also adjusts its scaling to this Java scaling, so that's actually the correct way to do this.
Java automatic scaling detection only works for the main screen, it doesn't work with individual, per screen scaling.

Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com

odeon
Posts: 45
Joined: Mon Mar 12, 2007 1:56 am
Location: Sweden

Re: Missing tabs in editor

Post by odeon » Thu Mar 12, 2020 11:25 am

Hi Adrian,

Missed your reply, earlier, so trying this now with the new build. Where, exactly, should I insert that oXygen scaling property? I thought the obvious place would be either vmoptions or the menu launcher command

Code: Select all

"/opt/Oxygen XML Editor 22/oxygen22.0" %U
but neither seems to care about

Code: Select all

-Dcom.oxygenxml.hidpi.scaling=1.5
.

A hint would be much appreciated.

Thanks,

/Ari

adrian
Posts: 2650
Joined: Tue May 17, 2005 4:01 pm

Re: Missing tabs in editor

Post by adrian » Thu Mar 19, 2020 4:56 pm

Hi,

You can set it in oxygen22.0.vmoptions, or better yet, in a new file named custom_commons.vmoptions so that all other tools also pick this up and also make this persistent between maintenance build updates (new files are not removed).
But it was actually correct to set

Code: Select all

-Dsun.java2d.uiScale=2
because Java scaling doesn't seem to be working automatically for you, so that's what needs addressing.

Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com

Cosmin Duna
Posts: 18
Joined: Wed Dec 12, 2018 5:33 pm

Re: Missing tabs in editor

Post by Cosmin Duna » Wed May 20, 2020 2:12 pm

Hello,

Just wanted to let you know that oXygen 22.1 is out now and it contains a fix for the issue you reported on this thread.

Best regards,
Cosmin
Cosmin Duna
<oXygen/> XML Editor
http://www.oxygenxml.com

odeon
Posts: 45
Joined: Mon Mar 12, 2007 1:56 am
Location: Sweden

Re: Missing tabs in editor

Post by odeon » Mon May 25, 2020 1:40 pm

Hi Cosmin,

Thanks - I'm running it now and the issue has indeed been fixed.

A related question, though: as I mentioned earlier in this thread, oXygen no longer appears to automatically recognise my screen resolution. Instead I have to edit the vmoptions as described. I assume this is because the Java version that comes with oXygen was updated for 22.0. Is there any chance of a fix for this? I'd like to be able to use a scaling factor 2 when using my 4k laptop screen (15") but a scaling factor 1 when connected to a Thunderbolt dock and an external large 4k screen (27").

My Cinnamon desktop scales automatically for everything but oXygen.

Radu
Posts: 6981
Joined: Fri Jul 09, 2004 5:18 pm

Re: Missing tabs in editor

Post by Radu » Tue May 26, 2020 7:28 am

Hi,

Oxygen is bundled with Java 14 on Linux and we are still having problems deciding the screen resolution with it. There is an issue registered for this and we'll update this forum thread when we have a fix for the problem, possibly in Oxygen 23 (Autumn this year).
In the Oxygen installation folder there is a "jre" subfolder, it contains the Java 14 distribution. If you rename this folder, Oxygen should start with the default Java distribution installed on your system (usually referenced in the "JAVA_HOME" environmental variable), so you may be able to download Java 1.8 and make Oxygen work with it.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com

odeon
Posts: 45
Joined: Mon Mar 12, 2007 1:56 am
Location: Sweden

Re: Missing tabs in editor

Post by odeon » Thu May 28, 2020 10:46 am

Hi Radu,

Thanks, I'll try that.

Interestingly, oXygen does sometimes recognise the current screen resolution and scales accordingly, seemingly without any action or change from me, both when I'm connected to a large screen and use scaling factor 1 and when I'm using the laptop screen and scaling factor 2. I can't see a pattern, though.

Thanks as always for a great product!

Best,

/Ari

Post Reply