fixed tkinter pack layout
This commit is contained in:
@@ -508,10 +508,13 @@ export class TkinterBase extends Widget {
|
|||||||
<div data-pack-container={side} style={{
|
<div data-pack-container={side} style={{
|
||||||
display: "flex",
|
display: "flex",
|
||||||
flexDirection: currentWidgetDirection,
|
flexDirection: currentWidgetDirection,
|
||||||
width: "100%"
|
width: "100%",
|
||||||
|
height: "100%"
|
||||||
|
//TODO: if flex direction is top then width is 100% else height
|
||||||
}}>
|
}}>
|
||||||
|
|
||||||
<div className="tw-flex tw-justify-center tw-items-center tw-w-full">
|
<div className={`tw-flex tw-justify-center tw-items-center
|
||||||
|
${(["top", "bottom"].includes(side)) ? "tw-w-full" : "tw-h-full"}`}>
|
||||||
{widget}
|
{widget}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user