inclusion of smaller elements within larger elements; includes html elements, pictures, graphs
Questions tagged [insets]
131 questions
38
votes
1 answer
What are insets in android?
I am beginner at android development. I was recently looking at someone else's code and found some functions view.onApplyWindowInsets(windowInsets), windowInsets.getSystemWindowInsetTop(). And this word was used frequently in the same app.
I tried…

Saran Sankaran
- 2,335
- 2
- 19
- 34
37
votes
6 answers
It is possible to create inset graphs?
I know that when you use par( fig=c( ... ), new=T ), you can create inset graphs. However, I was wondering if it is possible to use ggplot2 library to create 'inset' graphs.
UPDATE 1: I tried using the par() with ggplot2, but it does not…

Sam
- 7,922
- 16
- 47
- 62
17
votes
4 answers
How to add an inset (subplot) to "topright" of an R plot?
I'd like to have an inset within a plot that makes up 25% of the width and height of the plotting area (area where the graphs are).
I tried:
# datasets
d0 <- data.frame(x = rnorm(150, sd=5), y = rnorm(150, sd=5))
d0_inset <- data.frame(x =…

R_User
- 10,682
- 25
- 79
- 120
16
votes
2 answers
Control the two colors of an inset border?
I'm trying to see if there's a way to change the two colors of the inset border in CSS
As you know, the inset style creates a border on an element that creates the illusion that that it has an embedded border. It achieves this by making the bottom…

Philll_t
- 4,267
- 5
- 45
- 59
14
votes
1 answer
Different x and y scale in zoomed inset, matplotlib
I am trying to make an inset plot using matplotlib. Currently I have something like the last answer in
How to zoomed a portion of image and insert in the same plot in matplotlib
There is a parameter there which determines the zoom factor. However,…

Jonathan Lindgren
- 1,192
- 3
- 14
- 31
13
votes
1 answer
Java - JPanel with margins and JTextArea inside
I want to create something like this:
Main panel has its margins (x), and TextArea in the center of that panel which almost fills up the panel.
At the bottom is another panel with custom size (height y), which can be toggled visible and unvisible…

Jan Kowalski
- 233
- 2
- 3
- 7
12
votes
4 answers
What is the best way to put spaces between objects? Can a Swing JSeparator object be an invisible separator?
I'm trying to put two buttons inside a panel using Swing widgets. Inside the NetBeans IDE, my JSeparator border property is set to (No border) in the properties pane.
Nevertheless a line appears. This is not what I would expect from a separator…

Warren P
- 65,725
- 40
- 181
- 316
11
votes
2 answers
UITableView section header inset missing
How do I fix the problem illustrated in the image?
The section header for the tableview is missing an inset.

stackOverFlew
- 1,479
- 2
- 31
- 58
11
votes
2 answers
Why does UITableView ignore separatorColor for "extra" separators with custom separatorInset?
If I set a red separatorColor on a table view in iOS 7 and also set the separatorInset to UIEdgeInsetsZero or any other custom inset value, all additional or "extra" rows have default colored separators. How can I fix this?
The last sentence of the…

Aaron
- 7,055
- 2
- 38
- 53
10
votes
8 answers
Create a "inset" effect using CSS in websites
I am very much impressed by the "inset" like effect in many latest websites. Some examples are
and
The line in the center. Nowadays, many websites use these kinds of lines/effects.
I tried to achieve the same with borders but the color…

Aakash Chakravarthy
- 10,523
- 18
- 61
- 78
10
votes
5 answers
How can I set the insets of a JFrame?
Is there a way to set the insets of a JFrame?
I tried
frame.getContentPane().getInsets().set(10, 10, 10, 10);
and
frame.getInsets().set(10, 10, 10, 10);
but none of them seem to work.

JavaNewbie_M107
- 2,007
- 3
- 21
- 36
9
votes
5 answers
Add Image to TextField/SecureField in SwiftUI, add padding to placeholder text
I made a textfield and a securetextfield in SwiftUI but I have no idea how to add in an image into my textfield/secure textfield in SwiftUI. There is not much documentation online for SwiftUI like there was for the older versions of Swift. I also…

bain
- 335
- 1
- 6
- 17
9
votes
2 answers
JTextField margin doesnt work with border
I have a JTextField and i want to setMargin. But when i set any border, it doesn' t properly work. It' s margin function doesn't work.
This is my code;
import java.awt.Color;
import java.awt.Insets;
import java.io.IOException;
import…

querman
- 135
- 1
- 2
- 8
6
votes
2 answers
Add an (SVG-) image to an existing graph in R
I'd like to an an image (ideally an SVG) as an inset to an existing graph in R and put a black border around the image.
Is that possible with base-functions in R? Do I need packages for that?

R_User
- 10,682
- 25
- 79
- 120
6
votes
3 answers
Boxshadow inset not working
I'm using box shadow CSS feature on images in my gallery, but somehow the inset parameter is not working. I tried z-index and I tried to put in different places code and it's still not working.
Visit the website here.
Code
box-shadow:#000000 0 1px…

Is3
- 63
- 1
- 1
- 4