Questions tagged [stretch]

Stretching images in code.

516 questions
8
votes
2 answers

HTML, CSS: How do I stretch an element up to the edge of the page?

I have an absolutely positioned element with a background image that must appear as a small, horizontal strip reaching up to the edge of the browser window without needing a scrollbar. How could I do this?
Hamster
  • 2,962
  • 7
  • 27
  • 38
8
votes
2 answers

Scroll AND Stretch the content of an Expander

This is what I want: 1.) When I click my Expander button and it expands it should stretch down to the end of the Grid see sample image => 2.) When I write more Text than space is available in the RichTextBox within the Expander ScrollBars must be…
Elisabeth
  • 20,496
  • 52
  • 200
  • 321
8
votes
2 answers

How do android:shrinkColumns and android:stretchColumns work?

I can set android:shrinkColumns and android:stretchColumns at TableLayout. For example:
Alex Klimashevsky
  • 2,457
  • 3
  • 26
  • 58
7
votes
4 answers

Image stretched and centered?

I have the following XAML code : and I, visually, got this : (http://img810.imageshack.us/img810/2401/imagestretchuniform.png) With Stretch="None",…
Guillaume Slashy
  • 3,554
  • 8
  • 43
  • 68
7
votes
5 answers

How do I make a StringGrid's columns fit the grid's width?

I've been looking for a long time for a solution without any luck. Does anyone know a simple way to do that? I would like to stretch for example the second colum of my grid to fit the grid's width!
Diogo Garcia
  • 536
  • 1
  • 8
  • 20
7
votes
2 answers

Why does background-size:100% 100%; not work on this SVG?

Look at the example: .container { background-image:url("http://svgshare.com/i/3cM.svg"); background-position:center center; background-repeat:no-repeat; width:400px; height:200px; background-color:#eef; …
Blackbam
  • 17,496
  • 26
  • 97
  • 150
7
votes
2 answers

Stretching a Table's Width to fit web browser

I have scoured the internet for a long time trying to solve my problem. I have a table with my whole site in it and would like for it to stretch to fit the user's web browser size. Here is all the site's code:
Techn0guy
  • 79
  • 1
  • 1
  • 2
7
votes
1 answer

Flexbox: How to Combine percent, pixels and remaining height on columns?

I'm building basic grid system and need to combine height of flex-items described in different size units, which are %, px and remaining space. html:
50px
Dariusz Sikorski
  • 4,309
  • 5
  • 27
  • 44
7
votes
1 answer

Swich background images stretching while customizing in android

I am trying to customize Switch. I used xml files to achieve that switch_bg_selector.xml
rahul
  • 2,613
  • 8
  • 32
  • 55
7
votes
3 answers

CSS: Floating div to right causes container div to stretch full width of screen in IE

I saw a similar question here, and did not see an answer. I'm having an issue where an element is floated right, inside a parent div, and it's causing the div to stretch the entire width of the page in IE7. This does not happen in any other browsers…
Matt
  • 23,363
  • 39
  • 111
  • 152
7
votes
1 answer

Transforming coordinates from an image control to the image source in WPF

I'm trying to learn WPF, so here's a simple question, I hope: I have a window that contains an Image element bound to a separate data object with user-configurable Stretch property
Gabriel
  • 1,443
  • 15
  • 24
7
votes
3 answers

How to set UIScrollView's background image as a stretchable image?

I want to set UIScrollView's background image as a stretchable image. I tried: UIImage* backgroundImage =[[UIImage imageNamed:@"background"] resizableImageWithCapInsets:UIEdgeInsetsMake(100, 0, 0, 0)…
Burak
  • 5,706
  • 20
  • 70
  • 110
7
votes
2 answers

Stretching a XAML Path to fill its containing element

I have a ControlTemplate with some Paths in it. I would like the Paths to stretch and fill the control they are in, such as a Button. How can I do this? What I have currently looks like this:
sourcenouveau
  • 29,356
  • 35
  • 146
  • 243
6
votes
6 answers

Android: stretch layout between two fixed LinearLayouts

this is my layout (image): https://i.stack.imgur.com/wPx04.jpg What I want to do is make the 1st LinearLayout 50dip high (this is already OK), then have the 3rd LinearLayout also 50dip high from the bottom up - and then make the 2nd LinearLayout…
c0dehunter
  • 6,412
  • 16
  • 77
  • 139
6
votes
2 answers

Stretch inside an to fit window size

I am trying to stretch an svg document inside an DOM in order to fit the window size. like so:
click to zoom