Skip to content

Commit

Permalink
Fix home text
Browse files Browse the repository at this point in the history
Fix splitpannel error
  • Loading branch information
vnbaaij committed Nov 12, 2023
1 parent ab99db2 commit 22be55f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

The `Microsoft.FluentUI.AspNetCore.Components` package provides a set of [Blazor](https://blazor.net) components which are used to build applications that have a Fluent design (i.e. have the look and feel or modern Microsoft applications).

Some of the components in the library are wrappers around Microsoft's official Fluent UI Web Components. Others are components that leverage the Fluent design system or make it easier to work with Fluent UI. To get up and running with the library, see the **Getting Started** section below.
Some of the components in the library are wrappers around Microsoft's official Fluent UI Web Components. Others are components that leverage the Fluent Design System or make it easier to work with Fluent UI. To get up and running with the library, see the **Getting Started** section below.

The source for the library is hosted in the [fluentui-blazor](https://github.com/microsoft/fluentui-blazor) repository at GitHub. Documentation on the components is available at the [demo site](https://www.fluentui-blazor.net).

Expand Down
4 changes: 2 additions & 2 deletions examples/Demo/Shared/Pages/Home/Home.razor
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
<h2 id="introduction">Introduction</h2>
<p>
The <code>Microsoft.FluentUI.AspNetCore.Components</code> package provides a set of <a href="https://blazor.net">Blazor</a> components. Some of the
components are wrappers around Microsoft's official Fluent UI Blazor components. Others are components that leverage the Fluent UI design system
or make it easier to work with Fluent UI. To get up and running with <code>Microsoft.FluentUI.AspNetCore.Components</code> library, see the Getting Started section below.
components are wrappers around Microsoft's official Fluent UI Web Components. Others are components that leverage the Fluent Design System
or make it easier to work with Fluent. To get up and running with the <code>Microsoft.FluentUI.AspNetCore.Components</code> library, see the 'Getting Started'' section below.
</p>
<p>
The source for the library is hosted in the <a href="https://github.com/microsoft/fluentui-blazor">fluentui-blazor</a> repository at GitHub.
Expand Down
4 changes: 2 additions & 2 deletions src/Core/wwwroot/js/SplitPanels.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,14 +100,14 @@ class SplitPanels extends HTMLElement {
if (this.direction === "row") {
const newMedianLeft = e.clientX - this.left;
const median = this.dom.median.getBoundingClientRect().width;
this.#slot1size = newMedianLeft - (median / 2);
this.#slot1size = Math.floor(newMedianLeft - (median / 2));
this.#slot2size = this.clientWidth - this.#slot1size - median;
this.style.gridTemplateColumns = `${this.#slot1size}px ${median}px 1fr`;
}
if (this.direction === "column") {
const newMedianTop = e.clientY - this.top;
const median = this.dom.median.getBoundingClientRect().height;
this.#slot1size = newMedianTop - (median / 2);
this.#slot1size = Math.floor(newMedianTop - (median / 2));
this.#slot2size = this.clientHeight - this.#slot1size - median;
this.style.gridTemplateRows = `${this.#slot1size}px ${median}px 1fr`;
}
Expand Down

0 comments on commit 22be55f

Please sign in to comment.