5
$\begingroup$

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.

$\endgroup$
6
$\begingroup$

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

Dynamic@CurrentValue["WindowSize"]
$\endgroup$
  • $\begingroup$ 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 $\endgroup$ – mete Feb 6 '14 at 3:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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