Skip to content

Commit

Permalink
🚚 Move code blocks for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
gaelj committed Mar 4, 2024
1 parent f1a252e commit 2d1bc67
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions CodeMirror6/CodeMirror6WrapperInternal.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,11 @@ public partial class CodeMirror6WrapperInternal : ComponentBase, IAsyncDisposabl
/// <returns></returns>
public CMCommandDispatcher? CommandDispatcher => CmJsInterop?.CommandDispatcher;

/// <summary>
/// Is the JS CodeMirror instance ready?
/// </summary>
public bool IsLoaded => CmJsInterop?.IsJSReady == true;

private string SetupId = null!;
private string LoadingDivId => $"{SetupId}_Loading";
private string ContainerId => $"{SetupId}_Container";
Expand All @@ -248,7 +253,6 @@ public partial class CodeMirror6WrapperInternal : ComponentBase, IAsyncDisposabl
private string MaxWidthStyle => FullScreen || (string.IsNullOrEmpty(MaxWidth) && string.IsNullOrEmpty(Width)) ? string.Empty : $"max-width: {MaxWidth ?? Width};";
private string MaxHeightStyle => FullScreen || (string.IsNullOrEmpty(MaxHeight) && string.IsNullOrEmpty(Height)) ? string.Empty : $"max-height: {MaxHeight ?? Height};";
private string EditorStyle => $"{WidthStyle} {HeightStyle} {MaxWidthStyle} {MaxHeightStyle}";

/// <summary>
/// JavaScript interop instance
/// </summary>
Expand Down Expand Up @@ -475,10 +479,6 @@ protected override async Task OnParametersSetAsync()
/// </summary>
/// <returns></returns>
protected override bool ShouldRender() => shouldRender;
/// <summary>
/// Is the JS CodeMirror instance ready?
/// </summary>
public bool IsLoaded => CmJsInterop?.IsJSReady == true;

/// <summary>
/// Dispose resources
Expand Down

0 comments on commit 2d1bc67

Please sign in to comment.