recalculate scroll max on render mode change.
added function to change render mode.
renamed setRendererFromString() to setRenderModeFromString()