Skip to content

Document window failed to auto scale after moving #637

@AdjWang

Description

@AdjWang

The issue

The demo program rmlui_sample_demo.exe shows a responsive document window auto scaling with the main window. The auto scaling would not work if drag and move it somewhere.

How to reproduce

vcpkg install freetype glfw3
git clone https://github.com/mikke89/RmlUi.git
cd RmlUi
cmake -B Build -S . --preset samples -DRMLUI_BACKEND=GLFW_GL3 -DCMAKE_TOOLCHAIN_FILE="$env:VCPKG_ROOT/scripts/buildsystems/vcpkg.cmake"
cmake --build Build
git log -1
commit 51af29b1b34c3d8c6b1790385e6584f004cfe3a9 (HEAD -> master, origin/master, origin/HEAD)
Author: Michael Ragazzon <[email protected]>
Date:   Sun Jul 14 18:24:36 2024 +0200

    Defer scroll offset clamping to after layout, fixes #452
  • Execute ./Build/Debug/rmlui_sample_demo.exe -> maximize window => works fine
    no_drag

  • Execute ./Build/Debug/rmlui_sample_demo.exe -> drag the document window somewhere -> maximize window => the document window is not scaling
    step1
    step2

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions