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

bug (parser function): fixed wrapper height causes overlays #6

Open
gesinn-it-gea opened this issue Aug 14, 2024 · 20 comments
Open

bug (parser function): fixed wrapper height causes overlays #6

gesinn-it-gea opened this issue Aug 14, 2024 · 20 comments
Labels
bug Something isn't working

Comments

@gesinn-it-gea
Copy link
Member

gesinn-it-gea commented Aug 14, 2024

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.

image

The same happens on regular pages:

image

@gesinn-it-gea gesinn-it-gea added the bug Something isn't working label Aug 14, 2024
@gesinn-it-gea
Copy link
Member Author

This is caused by a fixed style in knowledgegraph-wrapper

image

@gesinn-it-gea gesinn-it-gea changed the title bug (parser function): preview overlays editor bug (parser function): fixed wrapper height causes overlays Aug 14, 2024
@thomas-topway-it
Copy link
Contributor

@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 ?

@gesinn-it-gea
Copy link
Member Author

Currently I do not have a public URL,

  • MW 1.39.7
  • mediawiki/chameleon-skin 4.3.0
  • KnowledgeGraph 55874d6
  • ... and some other extension that should not cause the style height set to 28px

The problem is the style attribute height set to 28px in my case.

@gesinn-it-gea
Copy link
Member Author

gesinn-it-gea commented Aug 14, 2024

## -------- Chameleon --------
# Chameleon included via Composer
wfLoadExtension( 'Bootstrap' );
wfLoadSkin( 'chameleon' );
$wgDefaultSkin="chameleon";
$egChameleonLayoutFile= "$IP/skins/chameleon/layouts/standard.xml";
## ======== Chameleon ========

@gesinn-it-gea
Copy link
Member Author

In Vector (just commenting Chameleon), rendering works as expected. JS console:

image

@thomas-topway-it
Copy link
Contributor

@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

@gesinn-it-gea
Copy link
Member Author

@thomas-topway-it thanks for looking into it. Is the fix you have mentioned already committed here?

@thomas-topway-it
Copy link
Contributor

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

@gesinn-it-gea
Copy link
Member Author

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.

image

@thomas-topway-it
Copy link
Contributor

I have now installed the last version and looks correct https://test.knowledge.wiki/SemanticGraph

@thomas-topway-it
Copy link
Contributor

@thomas-topway-it
Copy link
Contributor

ah, no, one second, there wasn't the skin https://test.knowledge.wiki/SemanticGraph?useskin=chameleon

@gesinn-it-gea
Copy link
Member Author

Please edit your example page to have some text before and after the parser function

TEXT BEFORE
{{#knowledgegraph...
TEXT AFTER

@thomas-topway-it
Copy link
Contributor

I don't have account on this wiki, however I'm trying to debug it anyway, I have identified the issue (at DOM level)

@gesinn-it-gea
Copy link
Member Author

@krabina can you please edit the example page as described in my last comment

https://test.knowledge.wiki/SemanticGraph

@thomas-topway-it
Copy link
Contributor

for now I've fixed this 4a2483f a quite bad inadvertence, my fault

@thomas-topway-it
Copy link
Contributor

there is still some inconsistency between chameleon and vector, I'm trying to find out the reason

@thomas-topway-it
Copy link
Contributor

I did a better assessment f253f94

so somehow (either Chameleon or Bootstrap) transform the jquery width() and height() functions to have absolute values, so now we are using plain javascript

@gesinn-it-gea
Copy link
Member Author

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.

@thomas-topway-it
Copy link
Contributor

ok, done 7d91333

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants