121 |
end |
end |
122 |
|
|
123 |
def hide |
def hide |
124 |
unless @tb.getChildAt(7, 7) # Is there an open tab? |
(@tb.numChildren-1).downto(0) do |i| |
125 |
case @where |
tab = @tb.childAtIndex(i) |
126 |
when 'west' |
return if (tab.kind_of? Fox::FXTabItem) && tab.shown |
127 |
@resizeWidth = @parentFrame.width |
end |
128 |
@parentFrame.width = 0 |
case @where |
129 |
when 'south' |
when 'west' |
130 |
@resizeHeight = @parentFrame.height |
@resizeWidth = @parentFrame.width |
131 |
@parentFrame.height = 0 |
@parentFrame.width = 0 |
132 |
end |
when 'south' |
133 |
|
@resizeHeight = @parentFrame.height |
134 |
|
@parentFrame.height = 0 |
135 |
end |
end |
136 |
end |
end |
137 |
|
|