We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8eed44b commit 1b6cb3aCopy full SHA for 1b6cb3a
dgl/src/pugl-extra/wasm.c
@@ -110,9 +110,8 @@ puglUpdateSizeHints(PuglView* const view)
110
canvasWrapper.style.setProperty("max-height", height + 'px');
111
}, className, size.width, size.height);
112
} else {
113
- // Avoid setting PBaseSize for top level views to avoid window manager bugs
114
const PuglArea defaultSize = view->sizeHints[PUGL_DEFAULT_SIZE];
115
- if (puglIsValidArea(defaultSize) && view->parent) {
+ if (puglIsValidArea(defaultSize)) {
116
EM_ASM({
117
var canvasWrapper = document.getElementById(UTF8ToString($0)).parentElement;
118
canvasWrapper.style.setProperty("width", parseInt($1 / window.devicePixelRatio) + 'px');
0 commit comments