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$

1 Answer 1

6
$\begingroup$

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

Dynamic@CurrentValue["WindowSize"]
$\endgroup$
1
  • $\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, 2014 at 3:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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