Brilliant. I knew I was doing something dumb. Thank you.
-Tom
On Tue, Jun 26, 2018 at 10:37 AM, Sebastien Jourdain <
sebastien.jourd...@kitware.com> wrote:
> The reason why it is not working is because you removed the container of
> the renderer from the DOM.
> Therefore, you will have to set
The reason why it is not working is because you removed the container of
the renderer from the DOM.
Therefore, you will have to set its container again... Basically it is
rendering somewhere in a detached DOM element.
You can do that, or simply use CSS to hide that DOM element.
On Tue, Jun 26,
Hi Tom,
Glad you figure it out. What I was previously trying to say was that in you
CSS definition you were not providing any constraint on the width and the
behavior of a container was to match the width of what it contains unless
the contains is smaller than the width of the window (block). So
Ok, turns out this is a CSS question. Table-layout: 'fixed' is the answer
(in the display: 'table' div), in case someone else is ever wondering why
their cells grow but do not shrink. Sorry for the extra traffic.
-Tom
On Mon, Jun 11, 2018 at 5:25 PM, Sgouros, Thomas
wrote:
> I should also add
Hi Sebastien:
I'm afraid I don't understand what you're saying here. Why would the
container grow due to the setup of my css? I thought the way it works is
that I resize the window, and SIzeHelper.onSizeChange() gets called. I use
that function to call .resize() on the renderers and the vertical
The renderer will ask for its container size when you call resize() on it.
So if that container keep growing due to the setup of your css, the size
propagation won't go to the server as the container will never shrink.
You need to fix the width in some way like you did for the height. You can
use
Hi Sebastien:
Looks like this:
Another data point: when I shrink or grow the window in the vertical, the
*height* of the canvas element changes in both directions, but the width
only changes when I grow the window and not when I shrink it. Maybe what
you're saying though is that I