Loading ...
Sorry, an error occurred while loading the content.

Re: safari doent fit svg content when resizeing the window

Expand Messages
  • Robert Longson
    ... You ve specified a fixed width and height on our svg element (approximately 3.18em by 20.6em) so that s what you get. If you want it to size with the
    Message 1 of 2 , May 4, 2011
    • 0 Attachment
      --- In svg-developers@yahoogroups.com, "hala_zzz" <hala_zzz@...> wrote:
      >
      > I have a centered block displayed svg inside HTML document, the problem says that safari is not fitting its svg content when resizing the window, safari doesn't change the view port of svg depending on window size,which is not like what is actually applied on the rest of HTML content.
      > see my file here
      > http://jsfiddle.net/FmUrG/embedded/result/
      >

      You've specified a fixed width and height on our svg element (approximately 3.18em by 20.6em) so that's what you get. If you want it to size with the content you'll need a percentage width and height assuming I've understood your problem correctly.

      Best regards

      Robert.
    Your message has been successfully submitted and would be delivered to recipients shortly.