Ribir icon indicating copy to clipboard operation
Ribir copied to clipboard

Window Resizing Issue When Moving to Another Screen on Windows

Open jhq223 opened this issue 1 year ago • 3 comments

Description:

When launching the hello world program, it renders correctly on a single screen. However, when the program window is dragged to a second monitor on a Windows setup with multiple screens, the window size is abnormally enlarged.

use ribir::prelude::*;

fn main() {
    App::run(fn_widget! { @Text { text: "Hello World!" } });
}

Steps to Reproduce:

Launch the program on a Windows system with multiple monitors. Observe the initial correct rendering on the first screen. Drag the program window to another monitor. Notice the abnormal enlargement of the program window.

Expected Behavior:

The program window should maintain its size and render correctly when moved to another screen, consistent with the appearance on the initial screen.

Actual Behavior:

The program window becomes abnormally enlarged when dragged to a secondary monitor.

Environment:

Operating System: Windows11 Screens: Two monitors Program Version: ribir = "0.4.0-alpha.15"

Additional Context:

Provide any additional information that might be helpful in diagnosing the issue, such as screen resolutions, scaling settings, or any relevant hardware details.

jhq223 avatar Nov 22 '24 08:11 jhq223

Thank you for the report. I would like to clarify whether the window size changed unexpectedly or if the content within the window size did not render as expected. Providing two screen snapshots would be helpful for further investigation.

M-Adoo avatar Nov 23 '24 03:11 M-Adoo

Please see the video below.

https://github.com/user-attachments/assets/25ac754a-178a-4459-bd83-7f10ecde60e2

jhq223 avatar Nov 23 '24 05:11 jhq223

Thank you for your feedback. It appears that there is an issue with the window resizing. I apologize for not investigating this sooner, but I will prioritize resolving it before the 0.4 release.

M-Adoo avatar Nov 23 '24 09:11 M-Adoo