Increase RESIZER_BOX_FACTOR to account for overlap from handle

Fixes https://github.com/vector-im/riot-web/issues/14136

The resizer handle wasn't being considered in this. 78% is both verified through mathematics and playing with it manually.
pull/21833/head
Travis Ralston 2020-06-30 19:20:11 -06:00
parent 7674030c6e
commit 8cfbfd4221
1 changed files with 3 additions and 3 deletions

View File

@ -18,9 +18,9 @@ import { TagID } from "./models";
const TILE_HEIGHT_PX = 44;
// the .65 comes from the CSS where the show more button is
// mathematically 65% of a tile when floating.
const RESIZER_BOX_FACTOR = 0.65;
// this comes from the CSS where the show more button is
// mathematically this percent of a tile when floating.
const RESIZER_BOX_FACTOR = 0.78;
interface ISerializedListLayout {
numTiles: number;