Skip to content

Commit 2ea1c6b

Browse files
committed
Fix forgotten class prefix
1 parent dfc8d0b commit 2ea1c6b

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

projects/angular-split/src/lib/component/split.component.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ export class SplitComponent implements AfterViewInit, OnDestroy {
6262
@Input() set direction(v: 'horizontal' | 'vertical') {
6363
this._direction = (v === 'vertical') ? 'vertical' : 'horizontal';
6464

65-
this.renderer.addClass(this.elRef.nativeElement, `is-${ this._direction }`);
66-
this.renderer.removeClass(this.elRef.nativeElement, `is-${ (this._direction === 'vertical') ? 'horizontal' : 'vertical' }`);
65+
this.renderer.addClass(this.elRef.nativeElement, `as-${ this._direction }`);
66+
this.renderer.removeClass(this.elRef.nativeElement, `as-${ (this._direction === 'vertical') ? 'horizontal' : 'vertical' }`);
6767

6868
this.build(false, false);
6969
}
@@ -79,8 +79,8 @@ export class SplitComponent implements AfterViewInit, OnDestroy {
7979
@Input() set unit(v: 'percent' | 'pixel') {
8080
this._unit = (v === 'pixel') ? 'pixel' : 'percent';
8181

82-
this.renderer.addClass(this.elRef.nativeElement, `is-${ this._unit }`);
83-
this.renderer.removeClass(this.elRef.nativeElement, `is-${ (this._unit === 'pixel') ? 'percent' : 'pixel' }`);
82+
this.renderer.addClass(this.elRef.nativeElement, `as-${ this._unit }`);
83+
this.renderer.removeClass(this.elRef.nativeElement, `as-${ (this._unit === 'pixel') ? 'percent' : 'pixel' }`);
8484

8585
this.build(false, true);
8686
}

src_app/app/component/examples/customGutterStyle.route.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import { AComponent } from './AComponent';
2525
</as-split>
2626
</div>
2727
<div class="split-example ex-b">
28-
<as-split [direction]="direction" gutterSize="1">
28+
<as-split [direction]="direction" restrictMove="true" gutterSize="1">
2929
<as-split-area [size]="30"><p>A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A</p></as-split-area>
3030
<as-split-area [size]="50"><p>B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B</p></as-split-area>
3131
<as-split-area [size]="20"><p>C C C C C C C C C C C C C C C C C C C C C C C C C C C C C C C C C C C C C C C C C C C C C C C</p></as-split-area>

0 commit comments

Comments
 (0)