Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

This is next question from the series: better avoid Panel if you care about details. previous about FrameMargins

In the following example ImageSize is on purpose not big enough to display 1, we will see that this causes the Panel to fool us about it's ImageSize.

First case:

With[{opt = Sequence[ImageSize -> {20, 20}, ImageMargins -> 0, Background -> Orange]},
 Row[{
   Panel[1, opt],
   Panel[1, opt]
   }]]

enter image description here

With[{opt = Sequence[ImageSize -> {20, 20}, ImageMargins -> 0, Background -> Orange]},
     Row[{
       Panel[1, opt],
       Panel[1, opt, FrameMargins -> 0]
       }]]

enter image description here

Again, there is no problem with Framed.

WinXP V9.0.1

Is this OS dependent problem too? Is appriopriate tag?, because I see no reason that FrameMargins should affect overall ImageSize.

share|improve this question
    
Are you complaining about the two panels in the 2nd example not being the same size? They are for me running V9.0.1 on OS X. –  m_goldberg Mar 25 at 21:42
    
@m_goldberg Yes. Well, I was expecting it is OS dependent, like the linked one. Now I'm waiting for WRI answer. –  Kuba Mar 25 at 21:45

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.