Questions tagged [viewbox]

The ViewBox is a very useful control in WPF. If does nothing more than scale to fit the content to the available size. It does not resize the content, but it transforms it.

358 questions
0
votes
2 answers

Viewbox in Silverlight

How can use "Viewbox" in Silverlight?
user169831
  • 29
  • 1
0
votes
2 answers

SVG to viewBox Coordinates

I am using JQVMAP to generate some maps of the US. The plugin has an onRegionClick callback. I am trying to zoom in to the clicked state within this function. I kind of have an idea of how to do it by converting the SVG path returned to me onClick…
hanleyhansen
  • 6,304
  • 8
  • 37
  • 73
0
votes
1 answer

centering an object after changing the viewbox

I'm using Raphael to build a map-like site. when panning and zooming I want some objects to be in the middle, there for I need to know where is the middle in perspective to the current viewbox (not the paper). How can I know the center of the…
Almog Dubin
  • 329
  • 2
  • 13
0
votes
1 answer

Snap view not functioning properly?

I coded an app in windows 8 consumer preview and i was not aware of view box, so the app doesn't fit for particular resolutions then i used view box to make the app fit for all the available resolutions, after i ported the app to windows 8 release…
Anandha
  • 41
  • 7
0
votes
1 answer

Scale hardcoded SVG image based on div size upon page load

I have a div element which contains a svg graph (bunch of circles and edges), and I also set viewBox attribute on the svg element. The coordinates of the nodes and edges in the graph are hardcoded for a specified screen size (hence for a specified…
skyork
  • 7,113
  • 18
  • 63
  • 103
0
votes
2 answers

resize text to largest possible size to fit a drawing rect with wraping

this are many similar questions asked to this but no good answer? i use context drawing to draw input text on a certain rect size "720,576", now i need to fit the whole text in that to the maximum font size, while maintaining the rows count? i tried…
bat3a
  • 31
  • 4
0
votes
1 answer

Adjusting aspect ratio of my wpf window using Viewbox

I want to use viewbox for maintaining my wpf window's aspect ratio. i.e if i put my application on large monitor , it sholud automatically fit to that screen and if run it on my laptop it should adjust to its screen. Please help me out on this . it…
user1379584
  • 151
  • 2
  • 4
  • 10
0
votes
2 answers

Viewbox in Cider designer hides all controls in the "box"

When I place a Viewbox as the child element of a WPF window, the Cider Designer "hides" all interior controls with the text "Viewbox" only appearing on the display. Why? Is there a problem with this layout? Are there better layouts to achieve…
Bill
  • 2,381
  • 4
  • 21
  • 24
-1
votes
1 answer

update svg viewBox and size but avoid zooming instability

I want to change the attributes on an svg element in an html page. svgElement.setAttribute("width", `${width_}`); //instruction 1 svgElement.setAttribute("height", `${height_}`); //instruction 2 svgElement.setAttribute("viewBox",`${x} ${y} ${width_}…
Ludovic Aubert
  • 9,534
  • 4
  • 16
  • 28
-1
votes
2 answers

Adapting the SVG of a Phoenician letter for a HTML site

I'm trying to adapt an open-source SVG created in Inkscape so it can be embedded on my experimental website in the same I've done so with other SVGs from the same alphabet. Phoenician "mem" and "nun" SVGs on my site
-1
votes
1 answer

Scrollbar only appear when the button of the svg reach bottom of his container

I use d3 to zoom a svg. I would like to display scrollbars only when a particular part of the svg is not visible (on my example the two rectangles). My problem is, the scrollbar only appears when the bottom line of the svg reach the bottom line of…
Charles
  • 11,367
  • 10
  • 77
  • 114
-1
votes
1 answer

Svg viewbox and preserveAspectRatio is not doing like expected

I am viewing the following svg http://pastebin.com/pNdNEQ6z in my Firefox and chome. Can someone tell me why the two graphs are somewhere in der middle of y an not starting at the top? If you change the viewbox to "0 200 650 800" everything is fine.…
KIC
  • 5,887
  • 7
  • 58
  • 98
-2
votes
1 answer

Opinions: Viewbox

I don't want to deal with varying screen resolutions in a WPF windows app. So, I came upon an approach which I believe deals with all of the various issues of the display - within reason. The design of the window goes like this:
Jamie
  • 9
1 2 3
23
24