diff --git a/src/PostIt/PostIt/Views/Blogs/BlogsPage.axaml b/src/PostIt/PostIt/Views/Blogs/BlogsPage.axaml
index 65c01817d..90397f09d 100644
--- a/src/PostIt/PostIt/Views/Blogs/BlogsPage.axaml
+++ b/src/PostIt/PostIt/Views/Blogs/BlogsPage.axaml
@@ -17,18 +17,14 @@
-
+
+
-
-
-
+ Orientation="Horizontal">
-
-
+
+
@@ -106,18 +103,22 @@
-
+
+
+
-
+
@@ -139,6 +140,8 @@
@@ -150,6 +153,8 @@
Padding="8"
BorderBrush="Gray"
BorderThickness="1"
+ HorizontalAlignment="Stretch"
+ VerticalAlignment="Stretch"
IsVisible="{Binding !IsMarkdownViewerVisible}">
-
+ BorderThickness="1"
+ HorizontalAlignment="Stretch"
+ VerticalAlignment="Stretch">
@@ -210,7 +217,7 @@
-
+
diff --git a/src/PostIt/PostIt/Views/Blogs/BlogsPage.axaml.cs b/src/PostIt/PostIt/Views/Blogs/BlogsPage.axaml.cs
index 91f799e64..89743d0ad 100644
--- a/src/PostIt/PostIt/Views/Blogs/BlogsPage.axaml.cs
+++ b/src/PostIt/PostIt/Views/Blogs/BlogsPage.axaml.cs
@@ -5,6 +5,9 @@ using Avalonia.Platform.Storage;
using Avalonia.Controls.Primitives;
using Avalonia.Interactivity;
using Avalonia.Controls.Platform;
+using Avalonia.Input;
+using System;
+using Avalonia;
namespace PostIt.Views.Blogs;
@@ -17,7 +20,7 @@ public partial class BlogsPage : ContentPage
InitializeComponent();
}
- protected override void OnLoaded(RoutedEventArgs e)
+ protected override void OnLoaded(RoutedEventArgs e)
{
base.OnLoaded(e);
@@ -49,25 +52,15 @@ public partial class BlogsPage : ContentPage
private void UpdateLayoutForKeyboard(double keyboardHeight)
{
- var app = App.Current as App;
-
- app.View.Margin = new Avalonia.Thickness(0, 0, 0, keyboardHeight);
-// OPTION B : Si vous devez explicitement appliquer un masque de découpage (Clip) basé sur la hauteur :
- /*
+ double visibleHeight = this.Bounds.Height - keyboardHeight;
if (keyboardHeight > 0)
{
- double visibleHeight = this.Bounds.Height - keyboardHeight;
- if (visibleHeight > 0)
- {
- MainContainer.Clip = new Avalonia.Media.RectangleGeometry(
- new Avalonia.Rect(0, 0, this.Bounds.Width, visibleHeight));
- }
+ DraftArticleTextEditor.MaxHeight = visibleHeight;
}
else
{
- MainContainer.Clip = null; // Réinitialise le clip quand le clavier se ferme
+ DraftArticleTextEditor.MaxHeight = double.PositiveInfinity;
}
- */
}
private void OnInputPaneStateChanged(object? sender, InputPaneStateEventArgs e)