.LWindow { min-width: 150px; min-height: 150px; resize: both; border: 1px solid black; box-sizing: border-box; position: absolute; overflow: auto; display: flex; flex-direction: column; background-color: lightgray; padding-bottom: 1em; } .LWindowHandle { width: auto; height: 1.5em; padding-left: 0.5ch; padding-right: 0.5ch; cursor: grab; background-color: lightsteelblue; display: flex; justify-content: space-between; align-items: center; overflow: hidden; } .LWindowContent { background-color: white; flex: 1; width: 100%; height: 100%; overflow: auto; }