Editor is vanish when I move to full screen
Hi,
When I resize the page to full screen the editor cotent disappered? why?
Thanks,
<ScrollView x:Name="scrollView">
<Editor x:Name="editor" IsReadOnly="False" AutoSize="TextChanges" IsSpellCheckEnabled="false" IsTextPredictionEnabled="false" Text="{Binding LogText, Mode=TwoWay}" />
</ScrollView>
.NET MAUI
-
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 36,706 Reputation points • Microsoft Vendor
2024-04-30T09:02:53.1+00:00 For further investigation, could you please provide the following information?
- The MAUI version.
- The platform and the API level.
- Does fullscreen mean window-maximized or borderless full-screen?
Your prompt reply will be highly appreciated.
-
Dani_S 2,826 Reputation points
2024-04-30T09:07:03.98+00:00 net 8.
Mean window-maximized
Vs 17.8.4
-
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 36,706 Reputation points • Microsoft Vendor
2024-05-01T06:40:23.9666667+00:00 I tested it in the same environment using the code you provided, and the content in the editor does not disappear after the window is maximized.
To investigate further, could you please provide the minimized code snippet or detailed steps that can reproduce this issue and update it to the question?
-
Dani_S 2,826 Reputation points
2024-05-01T08:34:17.2266667+00:00 Play with display resolution in display setting on windows( low resolution screen)
and make window - maximize.
-
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 36,706 Reputation points • Microsoft Vendor
2024-05-02T07:24:30.8566667+00:00 I tested this using a resolution of
800x600
and the contents of Editor remain after the window is maximized.To investigate further, could you please provide the minimized code snippet or detailed steps that can reproduce this issue and update it to the question?
-
Dani_S 2,826 Reputation points
2024-05-06T12:23:27.2166667+00:00 fill editor with content from log file and maximie and minimize the page.
-
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 36,706 Reputation points • Microsoft Vendor
2024-05-07T05:48:01.5533333+00:00 Does this problem only occur when minimizing and re-maximizing? If so, this issue may be due to data binding. If you give the Editor a value directly using assignment, does this issue still occur?
-
Dani_S 2,826 Reputation points
2024-05-07T05:50:41.8433333+00:00 I will check. Is there any solution to this.
-
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 36,706 Reputation points • Microsoft Vendor
2024-05-07T06:00:31.14+00:00 Before offering a solution, it should be needed to determine what is causing the problem.
-
Dani_S 2,826 Reputation points
2024-05-07T10:00:23.78+00:00 it seems that when using assignment is not occur.
-
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 36,706 Reputation points • Microsoft Vendor
2024-05-08T05:45:52.2866667+00:00 Could you please provide how you are reading the log file in ViewModel and binding it to Edtior? It could be that some of these events are re-reading the log file after minimizing, maximizing causing this issue.
-
Dani_S 2,826 Reputation points
2024-05-08T05:58:35.86+00:00 When page loaded I read from view model
-
Dani_S 2,826 Reputation points
2024-05-08T06:52:13.4733333+00:00 After reading the file and binding I set the scroller of the editor to end.
-
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 36,706 Reputation points • Microsoft Vendor
2024-05-09T02:49:27.0833333+00:00 For further investigation, could you please provide a minimized example of removing the private information, or a detailed reproduction step to demonstrate the workflow of the program?
Based on the current information, it can only be determined that the problem is in one of the methods of data binding.
Sign in to comment