Stack's position to be relative by default so it's child can be anchored

This commit is contained in:
pengfei.zhou 2019-12-21 11:19:02 +08:00
parent c8f3b5db00
commit f77b4a9bac
3 changed files with 7 additions and 3 deletions

4
dist/index.js vendored
View File

@ -4023,7 +4023,9 @@ return __module.exports;
class DoricStackNode extends DoricGroupViewNode {
build() {
return document.createElement('div');
const ret = document.createElement('div');
ret.style.position = "relative";
return ret;
}
layout() {
super.layout();

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -3,7 +3,9 @@ import { DoricGroupViewNode, LayoutSpec, FrameSize, LEFT, RIGHT, CENTER_X, CENTE
export class DoricStackNode extends DoricGroupViewNode {
build() {
return document.createElement('div')
const ret = document.createElement('div')
ret.style.position = "relative"
return ret
}
layout() {