[qwaq] Adjust edge window control lengths

I'd forgotten them when adjusting the corner control sizes
This commit is contained in:
Bill Currie 2020-03-23 23:03:35 +09:00
parent 622b5f4c45
commit 52722b73c1

View file

@ -30,22 +30,22 @@
[self addView: [[TitleBar alloc] initWithTitle:"drag me"]]; [self addView: [[TitleBar alloc] initWithTitle:"drag me"]];
topDrag = [[Button alloc] initWithRect: {{1, 0}, topDrag = [[Button alloc] initWithRect: {{2, 0},
{xlen - 2, 1}}]; {xlen - 4, 1}}];
topLeftDrag = [[Button alloc] initWithRect: {{0, 0}, topLeftDrag = [[Button alloc] initWithRect: {{0, 0},
{2, 2}}]; {2, 2}}];
topRightDrag = [[Button alloc] initWithRect: {{xlen - 2, 0}, topRightDrag = [[Button alloc] initWithRect: {{xlen - 2, 0},
{2, 2}}]; {2, 2}}];
leftDrag = [[Button alloc] initWithRect: {{0, 1}, leftDrag = [[Button alloc] initWithRect: {{0, 2},
{1, ylen - 2}}]; {1, ylen - 4}}];
rightDrag = [[Button alloc] initWithRect: {{xlen - 1, 1}, rightDrag = [[Button alloc] initWithRect: {{xlen - 1, 2},
{1, ylen - 2}}]; {1, ylen - 4}}];
bottomLeftDrag = [[Button alloc] initWithRect: {{0, ylen - 2}, bottomLeftDrag = [[Button alloc] initWithRect: {{0, ylen - 2},
{2, 2}}]; {2, 2}}];
bottomRightDrag = [[Button alloc] initWithRect: {{xlen - 2, ylen - 2}, bottomRightDrag = [[Button alloc] initWithRect: {{xlen - 2, ylen - 2},
{2, 2}}]; {2, 2}}];
bottomDrag = [[Button alloc] initWithRect: {{1, ylen - 1}, bottomDrag = [[Button alloc] initWithRect: {{2, ylen - 1},
{xlen - 2, 1}}]; {xlen - 4, 1}}];
[self addView: [topDrag setGrowMode: gfGrowHiX]]; [self addView: [topDrag setGrowMode: gfGrowHiX]];
[self addView: [topLeftDrag setGrowMode: gfGrowNone]]; [self addView: [topLeftDrag setGrowMode: gfGrowNone]];
[self addView: [topRightDrag setGrowMode: gfGrowX]]; [self addView: [topRightDrag setGrowMode: gfGrowX]];