You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is party related to #69. I'm getting very confused (not for the first time) with how size <- assignments and expand=T and fill=T are supposed to act and interact in gWidgets2.
And execute 1st and 3rd batches in one go. Notice that:
> print(size(lyt[1,1]))
width height
76 18
even though visibly the frame is clearly not of size 0 in the GUI. So (2) why is the size being misreported here? (Unfortunately this makes debugging very confusing.)
Now take the same example and execute the following separately. Notice that now:
> print(size(lyt[1,1]))
width height
134 118
Why is the reported size different depending on when the calls are being made? And why each time the size is different from the one actually assigned: c(130, 100)?
In the example above, how can I set the height only and leave the width to be automatically set by respecting fill=TRUE? For example if I do
size(lyt[1,1])[2] <- c(100)
seems to work in setting the height to 100 pixels, but then how do I set the width of both frames to take 50% of the available space? Would it be possible to set that using size(lyt[1,1])[2] <- c(100, 0.50) as for gpanedgroup, whereas 100 is in pixels and 0.50 in proportions?
I'm sorry if this is all confusing, but it's very unclear to me how size assignments are expected to work, and for me it's very often a hit and miss approach to get the layout right.
The text was updated successfully, but these errors were encountered:
This is party related to #69. I'm getting very confused (not for the first time) with how
size <-
assignments andexpand=T
andfill=T
are supposed to act and interact ingWidgets2
.Consider the following:
Even though I set
expand=TRUE, fill=TRUE
everywhere I could think of and:(1) why do I get both frames in the GUI effectively of size 0?
Then replace "2nd batch" with:
And execute 1st and 3rd batches in one go. Notice that:
even though visibly the frame is clearly not of size 0 in the GUI. So (2) why is the size being misreported here? (Unfortunately this makes debugging very confusing.)
Now take the same example and execute the following separately. Notice that now:
Why is the reported size different depending on when the calls are being made? And why each time the size is different from the one actually assigned:
c(130, 100)
?In the example above, how can I set the
height
only and leave thewidth
to be automatically set by respectingfill=TRUE
? For example if I doseems to work in setting the
height
to 100 pixels, but then how do I set thewidth
of both frames to take 50% of the available space? Would it be possible to set that usingsize(lyt[1,1])[2] <- c(100, 0.50)
as forgpanedgroup
, whereas 100 is in pixels and 0.50 in proportions?I'm sorry if this is all confusing, but it's very unclear to me how
size
assignments are expected to work, and for me it's very often a hit and miss approach to get the layout right.The text was updated successfully, but these errors were encountered: