Questions tagged [stretching]
106 questions
217
votes
10 answers
How do I keep CSS floats in one line?
I want to have two items on the same line using float: left for the item on the left.
I have no problems achieving this alone. The problem is, I want the two items to stay on the same line even when you resize the browser very small. You know...…

Jiaaro
- 74,485
- 42
- 169
- 190
71
votes
10 answers
How to stop an image from stretching within a UIImageView?
I have a UIImageView where I have set the frame size to x = 0, y = 0, width = 404, height = 712.
In my project, I need to change the image in UIImageView dynamically.
I am using this code to change the image:
self.imageView.image = [UIImage…

R. Dewi
- 4,141
- 9
- 41
- 66
48
votes
2 answers
bootstrap button: Stretch to fill its container space
I'm using bootstrap buttons, I would like to stretch the dropdown button in the middle to fill the rest of the toolbar space.
HTML (shortened code):
25
votes
6 answers
Difference between contrast stretching and histogram equalization
I would like to know the difference between contrast stretching and histogram equalization.
I have tried both using OpenCV and observed the results, but I still have not understood the main differences between the two techniques. Insights would be…

Jeru Luke
- 20,118
- 13
- 80
- 87
18
votes
5 answers
Android zxing - portrait camera preview/surfaceview is stretched/warped
I have managed to use the answer here to rotate the camera preview to portrait:
http://code.google.com/p/zxing/issues/detail?id=178#c46
however the preview itself is stretched/warped - the height appears to be stretching to fill the box (but it…

AndroidNoob
- 2,771
- 2
- 40
- 53
10
votes
5 answers
Children element with height: 100% getting pushed by siblings
I have a very simple structure:
The parent div has a set height, and I want…
Element taking space
Not much content, but needs to be stretched to the end.

Sunyatasattva
- 5,619
- 3
- 27
- 37
7
votes
1 answer
replacement for UIView's contentStretch for non-image-based content
I have a UIView subclass. It is drawing some things based on a lot of complicated code that I would greatly prefer not to disturb for this particular purpose.
I am using the now-deprecated contentStretch property to make certain changes to my view.…

William Jockusch
- 26,513
- 49
- 182
- 323
6
votes
2 answers
Setting a WPF control to expand to fill available space, and no more
How can I set up a WPF control to fill the available space in its parent's container, but not expand the parent?
The following snippet describes the layout I am attempting. I would like the Grid to stretch to accommodate the Expander, and I would…

sourcenouveau
- 29,356
- 35
- 146
- 243
5
votes
1 answer
Meaning of the middle line on xcode asset slicing?
Official documentaion:
https://help.apple.com/xcode/mac/8.0/#/deve65bd8d0d
3 vertical lines:
- left line shows the left unstretchable area
- right line shows the right unstretchable area
But can't understand what does the middle vertical line…

Vyachaslav Gerchicov
- 2,317
- 3
- 23
- 49
5
votes
2 answers
LibGDX scaling 2d graphics
I have problem with stretching sprites in LibGDX.
I have one png file for the sky in the game (1x1000 px) and i want to do it 1000x1000px
sprite.setSize(pixelWidth,pixelHeight);
Edit: Here is the image that I want to stretch - sky . It has little…

Yasen Bagalev
- 51
- 1
- 4
5
votes
1 answer
Replacement for UIView's contentStretch?
In iOS 6.0 the contentStretch property of UIView was deprecated.
How can I achieve the same functionality with new/old/other API?
The functionality I am looking for is stretching just part of an image (everything but the edges) on a UIButton.

EladWeinson
- 189
- 3
- 9
4
votes
2 answers
Make stretchable split screen in Tkinter
I want to make a window which enables split text screens in Tkinter. I also want to be able to "stretch" the screens with the mouse, so for example if I want one of the screens to be temporarily bigger than the other, I just drag it with the…

PandaDeTapas
- 516
- 1
- 7
- 16
4
votes
1 answer
Android GridView elements overlap in rows
I am learning GridView. As you can see from the screenshot below, I have added 13 buttons with various length strings as their text. However long text buttons overlap each other, I tried but I couldn't fix it. All I want is that each row has the…

Mustafa
- 10,013
- 10
- 70
- 116
3
votes
1 answer
Full Screen Video Recording in Front Camera using camera2 api
I have been stuck in this issue for days.
I followed this Android's official camera-sample in Kotlin:
android's camera-sample
I raised an issue on github issue on 11 Feb 2020 but haven't received any feedback.
My problem is:
I used the sample as it…

prex
- 719
- 4
- 17
3
votes
1 answer
css 100% stretched table inside a table-row fail in IE
The problem:
Stretching a table 100% width/height inside a table-row doesn't work in IE.
Why?!
Here's the code (http://jsfiddle.net/GBsay/2/):
html:
this table should be 100%…

Julius Loa
- 173
- 1
- 7