@lightningjs/ui
Advanced tools
Comparing version 1.0.7 to 1.0.8
{ | ||
"name": "@lightningjs/ui", | ||
"version": "1.0.7", | ||
"version": "1.0.8", | ||
"description": "Standard UI components for Lightning", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -127,3 +127,3 @@ import { CollectionWrapper, ItemWrapper, limitWithinRange } from "./helpers"; | ||
async reposition() { | ||
repositionItems() { | ||
const wrapper = this.wrapper; | ||
@@ -178,2 +178,3 @@ if(!wrapper && wrapper.children.length) { | ||
}); | ||
super.repositionItems(); | ||
} | ||
@@ -180,0 +181,0 @@ |
@@ -16,3 +16,4 @@ import Lightning from "@lightningjs/core"; | ||
component.isAlive = true; | ||
this.children = [{...component, w: this.w, h: this.h}]; | ||
const {w, h, margin, marginUp, marginBottom, marginRight, marginLeft} = this; | ||
this.children = [{...component, w, h, margin, marginUp, marginRight, marginLeft, marginBottom}]; | ||
if(this.hasFocus()) { | ||
@@ -19,0 +20,0 @@ this._refocus(); |
82110
1058