mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-04-02 13:37:42 -05:00
web: Fix canvas size issues when zooming page
This commit is contained in:
@@ -147,6 +147,7 @@ namespace hex {
|
||||
prevWidth = width;
|
||||
prevHeight = height;
|
||||
this->resize(width, height);
|
||||
resizeCanvas();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -167,7 +168,7 @@ namespace hex {
|
||||
ImHexApi::System::impl::setNativeScale(currScaleFactor);
|
||||
|
||||
ThemeManager::reapplyCurrentTheme();
|
||||
ImGui::GetStyle().ScaleAllSizes(currScaleFactor);
|
||||
ImGui::GetStyle().ScaleAllSizes(currScaleFactor / prevScaleFactor);
|
||||
}
|
||||
|
||||
prevScaleFactor = currScaleFactor;
|
||||
|
||||
Reference in New Issue
Block a user