提交 a9e52b06 编写于 作者: M Matt Bierner

Remove minSize and maxSize as they are unusde

上级 192682d2
......@@ -917,50 +917,6 @@ export class Builder implements IDisposable {
return this;
}
/**
* Sets the CSS property min-size.
*/
public minSize(size: string): Builder;
public minSize(width: number, height?: number): Builder;
public minSize(width: string, height?: string): Builder;
public minSize(width: any, height?: any): Builder {
if (types.isString(width) && width.indexOf(' ') >= 0) {
return this.minSize.apply(this, width.split(' '));
}
if (!types.isUndefinedOrNull(width)) {
this.currentElement.style.minWidth = this.toPixel(width);
}
if (!types.isUndefinedOrNull(height)) {
this.currentElement.style.minHeight = this.toPixel(height);
}
return this;
}
/**
* Sets the CSS property max-size.
*/
public maxSize(size: string): Builder;
public maxSize(width: number, height?: number): Builder;
public maxSize(width: string, height?: string): Builder;
public maxSize(width: any, height?: any): Builder {
if (types.isString(width) && width.indexOf(' ') >= 0) {
return this.maxSize.apply(this, width.split(' '));
}
if (!types.isUndefinedOrNull(width)) {
this.currentElement.style.maxWidth = this.toPixel(width);
}
if (!types.isUndefinedOrNull(height)) {
this.currentElement.style.maxHeight = this.toPixel(height);
}
return this;
}
/**
* Sets the CSS property display.
*/
......
......@@ -612,14 +612,6 @@ suite('Builder', () => {
assert.strictEqual(b.style('width'), '100px');
assert.strictEqual(b.style('height'), '200px');
b.minSize(300, 400);
b.maxSize(500, 600);
assert.strictEqual(b.style('minWidth'), '300px');
assert.strictEqual(b.style('minHeight'), '400px');
assert.strictEqual(b.style('maxWidth'), '500px');
assert.strictEqual(b.style('maxHeight'), '600px');
});
test('Builder.show() and .hide()', function () {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册