@Override
	public Dimension getPreferredSize() {
		int width = 0;
		int height = 0;
		if (mChildren[0] != null) {
			Dimension size = mChildren[0].getPreferredSize();
			width = size.width;
			height = size.height;
		}
		if (mChildren[1] != null) {
			Dimension size = mChildren[1].getPreferredSize();
			if (width < size.width) {
				width = size.width;
			}
			if (height < size.height) {
				height = size.height;
			}
			if (mHorizontal) {
				width *= 2;
				width += Dock.DIVIDER_SIZE;
			} else {
				height *= 2;
				height += Dock.DIVIDER_SIZE;
			}
		}
		return new Dimension(width, height);
	}