Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to create a cell that will resize automatically if the notebook is resized. I was hoping to find some function called NotebookDimensions[], and use it dynamically.

share|improve this question
up vote 5 down vote accepted

You can use CurrentValue for this. Evaluate the following and try resizing your notebook window:

Dynamic@CurrentValue["WindowSize"]
share|improve this answer
    
Thanks, that's what I was looking for. I think it need to be scaled a little to avoid the frame to be out of the window – mete Feb 6 '14 at 3:30

Your Answer

 
discard

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.