Skip to content

Commit 48cd144

Browse files
committed
fix(speeddial): horizontalAlignment support
1 parent 04848c5 commit 48cd144

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/speeddial/index.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -294,8 +294,6 @@ export class SpeedDial extends SpeedDialItemBase {
294294
this.prepareItem(this._fabMainButton, true);
295295
this._fabMainButton.row = 3;
296296

297-
this._fabsHolder.horizontalAlignment = this.rPosition as HorizontalAlignment;
298-
299297
this.addChild(this._fabMainButton);
300298
this.addChild(this._fabsHolder);
301299
}
@@ -553,6 +551,13 @@ export class SpeedDial extends SpeedDialItemBase {
553551
this._fabMainButton.title = value;
554552
}
555553
//@ts-ignore
554+
get horizontalAlignment() {
555+
return this._fabsHolder.horizontalAlignment;
556+
}
557+
set horizontalAlignment(value) {
558+
this._fabsHolder.horizontalAlignment = value;
559+
}
560+
//@ts-ignore
556561
// get backgroundColor() {
557562
// return this._fabMainButton.backgroundColor;
558563
// }

0 commit comments

Comments
 (0)