.LWindow { min-width: 150px; min-height: 150px; resize: both; border: 1px solid black; box-sizing: border-box; position: absolute; background-color: white; overflow: auto; display: flex; flex-direction: column; } .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 { flex: 1; overflow: hidden; }