protegeproject / protege

Protege Desktop
http://protege.stanford.edu
Other
1k stars 231 forks source link

Class labels truncated in class tree #814

Open tudorache opened 5 years ago

tudorache commented 5 years ago

Report from the short course 2018.10:

I found that sometimes (after entering the first axiom for a class, making the class name bold), class names are becoming truncated to a few characters followed by an ellipsis "..." (screenshot attached; class truncated is "Dish"). This has happened to me in Protege 5.5.0-beta-4 and Protege 5.5.0-beta-3 on my MacBook Pro running OSX High Sierra.

If I refresh my interface by Window > Refresh user interface, the problem is fixed.

It is not entirely consistently reproducible.

macOS High Sierra Version: 10.13.6 (17G65)

MacBook Pro (13-inch, 2016, Four Thunderbolt 3 Ports) Processor 3.3 GHz Intel Core i7 Graphics Intel Iris Graphics 550 1536 MB

screenshot 2018-10-23 16 48 50
csnyulas commented 5 years ago

The problem seems to happen when a class name displayed in regular font changes to bold faced font, for example when the very first axioms (such as a subclass of axiom in the above case) is added to the class. Apparently, the rendering of the class name in bold face does not fit in the area occupied by the previous rendering (in regular font) of the same class name.

Basically, it seems to be a refreshing problem. Other refreshing problems have been observed also, for example, when unsatisfiable classes, highlighted in red, were fixed, some of them become black, but some others that should have become black due to the same fix, have not, until a refresh was forced on them.

csnyulas commented 5 years ago

I can reproduce it in Protege 5.5 in Linux (Ubuntu), with default (Protégé) L&F, by opening a new ontology, not changing the ontology IRI, creating a class and adding an annotation to it (e.g. a comment).

Here is what I see after changing the class selection:

image

and these are my (out of the box) new entity settings: image