Closed Track-tor closed 2 years ago
After some tinkering I managed to find what was causing this issue: The '.container-after-titlebar' element was covering the whole window, basically taking a height of 100%.
So, I basically 'solved' this problem by modifying the class and overwriting the height to be 0. IDK if this will mess with anything from the library, but for now it'll do.
I faced the same problem and found the reason why it happens:
<div class="container-after-titlebar">
element should have been loaded after "DOMContentLoaded" event.
take a look at this example:
Then, <div class="container-after-titlebar">
element can wrap the other elements in <body>
element.
I think it would be great to explain(warn) this in the document.
Bug Description: When I set a custom title bar on a window most CSS pseudo classes stop working.
Steps to reproduce the behavior:
Expected behavior: In the case of :hover the style should be applied when the mouse is hovering over the item, but the style is not being applied. This only happens when I include my 'titlebar.js' script inside a view of my project.
I haven't tested it, but I suspect that almost all mouse related events are not working properly.
Screenshots: Button being hovered:
Expected style when hovered (applied by dev-console):
titlebar.js:
app.css:
main.html:
Desktop: