Closed gesinn-it-gea closed 1 week ago
This is caused by a fixed style in knowledgegraph-wrapper
@gesinn-it-gea I cannot reproduce with chameleon and last version, could you please post the styles from the inspector ? -- or is there a public url that I can access ?
Currently I do not have a public URL,
The problem is the style attribute height set to 28px in my case.
## -------- Chameleon --------
# Chameleon included via Composer
wfLoadExtension( 'Bootstrap' );
wfLoadSkin( 'chameleon' );
$wgDefaultSkin="chameleon";
$egChameleonLayoutFile= "$IP/skins/chameleon/layouts/standard.xml";
## ======== Chameleon ========
In Vector (just commenting Chameleon), rendering works as expected. JS console:
@gesinn-it-gea I remember I had already fixed this issue and perhaps I've found it shows here https://test.knowledge.wiki/SemanticGraph?useskin=chameleon
@thomas-topway-it thanks for looking into it. Is the fix you have mentioned already committed here?
it should, so it is strange it happens, now I'm trying to update the KG extension on the server to check if it is caused by an old version. If this is not the case, I can debug it
Your wiki show's the same bug. Try to add some text before and after the parser function call to make it easier to see the overlay.
I have now installed the last version and looks correct https://test.knowledge.wiki/SemanticGraph
ah, no, one second, there wasn't the skin https://test.knowledge.wiki/SemanticGraph?useskin=chameleon
Please edit your example page to have some text before and after the parser function
TEXT BEFORE
{{#knowledgegraph...
TEXT AFTER
I don't have account on this wiki, however I'm trying to debug it anyway, I have identified the issue (at DOM level)
@krabina can you please edit the example page as described in my last comment
for now I've fixed this https://github.com/SemanticMediaWiki/KnowledgeGraph/commit/4a2483f7aacd7785edc7644a56bec0dfebdc6f9c a quite bad inadvertence, my fault
there is still some inconsistency between chameleon and vector, I'm trying to find out the reason
I did a better assessment https://github.com/SemanticMediaWiki/KnowledgeGraph/commit/f253f947062ffa35c053ebcc207516bdb4430945
so somehow (either Chameleon or Bootstrap) transform the jquery width()
and height()
functions to have absolute values, so now we are using plain javascript
works perfect! Many thanks for having a look at this. One hint: there seems to be still some console output. This should imho be removed.
Given a wiki with Chameleon skin. When source editing a page with the
#knowledgegraph
parser function, a preview will overlay the wiki text editor making the text inaccessible.The same happens on regular pages: