File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -198,7 +198,9 @@ function update(obj)
198198 obj.checkbox_surface_parcels.Value = false ;
199199 end
200200 end
201- obj .button .Position(3 ) = widthOfString(obj .button .Text , LABEL_H ) + widthOfString(' ' , LABEL_H + LABEL_GAP );
201+ % Instead of changing the width of the button and making the line unusable, use a tooltip
202+ % obj.button.Position(3) = widthOfString(obj.button.Text, LABEL_H) + widthOfString(' ', LABEL_H + LABEL_GAP);
203+ obj.button.Tooltip = obj .button .Text ;
202204
203205 obj .inflation_label .Position(1 ) = obj .button .Position(1 ) + obj .button .Position(3 ) + LABEL_GAP ;
204206 obj .inflation_dropdown .Position(1 ) = obj .button .Position(1 ) + obj .button .Position(3 ) + LABEL_GAP + ...
Original file line number Diff line number Diff line change @@ -193,7 +193,7 @@ function buttonClickedCallback(obj, ~)
193193 obj.checkbox_surface_parcels.Value = true ;
194194 end
195195
196- obj .update();
196+ obj .update(true );
197197 close(prog );
198198 catch ex
199199 close(prog );
@@ -246,7 +246,7 @@ function button2ClickedCallback(obj, ~)
246246 end
247247 end
248248
249- obj .update();
249+ obj .update(false );
250250 close(prog );
251251 else
252252 close(prog );
@@ -312,7 +312,7 @@ function updateFuncConn(obj)
312312 end
313313 end
314314
315- function update(obj )
315+ function update(obj , network_atlas_button )
316316 import nla.inputField.widthOfString nla.inputField.LABEL_H nla.inputField.LABEL_GAP
317317
318318 obj .updateFuncConn();
@@ -332,8 +332,9 @@ function update(obj)
332332 obj.checkbox_surface_parcels.Value = false ;
333333 end
334334 end
335- obj .button .Position(3 ) = widthOfString(obj .button .Text , LABEL_H ) + widthOfString(' ' , LABEL_H + LABEL_GAP );
336-
335+ % Instead of changing the width of the button and making the line unusable, use a tooltip
336+ % obj.button.Position(3) = widthOfString(obj.button.Text, LABEL_H) + widthOfString(' ', LABEL_H + LABEL_GAP);
337+ obj.button.Tooltip = obj .button .Text ;
337338
338339 obj .inflation_label .Position(1 ) = obj .button .Position(1 ) + obj .button .Position(3 ) + LABEL_GAP ;
339340 obj .inflation_dropdown .Position(1 ) = obj .button .Position(1 ) + obj .button .Position(3 ) + LABEL_GAP + ...
You can’t perform that action at this time.
0 commit comments