Alan Gutierrez
http://twitter.com/bigeasy
> Wondering if anyone has set out to create a scrollable canvas. Should
> I simply use the behavior in the browser, wrap the paper div in a
> scrollable div (overflow: auto), or is there a better way within
> Raphaël?
I'm working with paper inside a div with css : overflow: scroll and it works ok.
>
> Alan Gutierrez
> http://twitter.com/bigeasy
>
> --
> You received this message because you are subscribed to the Google Groups "Raphaël" group.
> To post to this group, send an email to raph...@googlegroups.com.
> To unsubscribe from this group, send email to raphaeljs+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/raphaeljs?hl=en-GB.
>
--
Sebastian Gurin <sgu...@softpoint.org>
paper.canvas.style.overflow = "scroll";
----- Original Message -----
From: "Alan Gutierrez" <al...@blogometer.com>
To: "Rapha�l" <raph...@googlegroups.com>
Sent: Saturday, March 27, 2010 12:31 AM
Subject: Scrollable Canvas
Wondering if anyone has set out to create a scrollable canvas. Should
I simply use the behavior in the browser, wrap the paper div in a
scrollable div (overflow: auto), or is there a better way within
Rapha�l?
Alan Gutierrez
http://twitter.com/bigeasy
--
You received this message because you are subscribed to the Google Groups
"Rapha�l" group.
| Janna You can get the canvas to cover a very long window. This code dynamically gets a canvas to fit the screen with 400 pixels extra height for example.. var pScreenHeight = document.all&&document.getElementById ? document.body.clientHeight: window.innerHeight; var pScreenWidth = document.all&&document.getElementById ? document.body.clientWidth: window.innerWidth; var paper = Raphael(document.getElementById("notepad"), pScreenWidth, pScreenHeight+400); --- On Sat, 3/27/10, Janna Ermakova <jerm...@rogers.com> wrote: |
|
|
|
|
|
|
|
|
You could construct your dom like this:
div width=200 overflow=scroll
raphael canvas width=500
Then the div should overflow and render a scroll bar, while the
raphael canvas draws on the full 500 as it's meant to.
On 27 Mar, 15:22, "Janna Ermakova" <jermak...@rogers.com> wrote:
> Scrollable div didn't work for me. I used:
>
> paper.canvas.style.overflow = "scroll";
>
>
>
> ----- Original Message -----
> From: "Alan Gutierrez" <a...@blogometer.com>
> To: "Rapha l" <raph...@googlegroups.com>
> Sent: Saturday, March 27, 2010 12:31 AM
> Subject: Scrollable Canvas
>
> Wondering if anyone has set out to create a scrollable canvas. Should
> I simply use the behavior in the browser, wrap the paper div in a
> scrollable div (overflow: auto), or is there a better way within
> Rapha l?
>
> Alan Gutierrezhttp://twitter.com/bigeasy
I find translate this to Raphael
http://onlypaths.com/aaopblog/2009/2/23/index.htm
IExplorer-VML window trims