Skip to content

Commit

Permalink
fix: spacer with fixed size wrong width
Browse files Browse the repository at this point in the history
  • Loading branch information
inikolova authored and joneff committed Feb 17, 2021
1 parent fa763a5 commit f2d7cc3
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 4 deletions.
2 changes: 0 additions & 2 deletions packages/default/scss/toolbar/_layout.scss
Expand Up @@ -108,13 +108,11 @@


// Spacer
.k-spacer,
.k-toolbar-spacer {
height: $line-height-em;
flex: 1 1 auto;
}


// Template
.k-toolbar-template {
align-self: center;
Expand Down
23 changes: 21 additions & 2 deletions tests/visual/grid-toolbar.html
Expand Up @@ -94,7 +94,17 @@
</div>
</div>
</section>
<section></section>
<section>
<!-- Spacer -->
<kendo-grid dir="ltr" class="k-widget k-grid">
<kendo-grid-toolbar class="k-toolbar k-grid-toolbar">
<button class="k-button">Spacer</button>
<kendo-grid-spacer class="k-spacer"></kendo-grid-spacer>
<button class="k-button">Spacer</button>
</kendo-grid-toolbar>

</kendo-grid>
</section>


<span>Search RTL</span>
Expand All @@ -110,7 +120,16 @@
</div>
</div>
</section>
<section></section>
<section>
<!-- Spacer with fixed width -->
<kendo-grid dir="ltr" class="k-widget k-grid">
<kendo-grid-toolbar class="k-toolbar k-grid-toolbar">
<button class="k-button">Spacer fixed width</button>
<kendo-grid-spacer width="10px" class="k-spacer k-spacer-sized" style="flex-basis: 10px;"></kendo-grid-spacer>
<button class="k-button">Spacer fixed width</button>
</kendo-grid-toolbar>
</kendo-grid>
</section>

<span>Multi-line</span>
<section>
Expand Down

0 comments on commit f2d7cc3

Please sign in to comment.