Questions tagged [insets]

inclusion of smaller elements within larger elements; includes html elements, pictures, graphs

131 questions
2
votes
3 answers

Assigning Insets from an Array - Java

I have the following code which uses one of the JTextAreas from an array of such Objects to assign the Insets of a JTextArea for my program. The code is as follows: import javax.swing.*; import java.awt.*; public class MainComponents { …
nmagerko
  • 6,586
  • 12
  • 46
  • 71
2
votes
1 answer

Insets not respected

I'm writing a calendar panel to use in an application. To display days I use JButtons. Since I don't want the buttons to take a lot of space they have no insets. Here is how it looks in my GTK+: All buttons are displayed nice and clean. Now here…
siebz0r
  • 18,867
  • 14
  • 64
  • 107
2
votes
1 answer

How do I create two inserted plots by zooming in on two different areas? The original plot was made with `ggplot2`

I made a plot using ggplot2. From this plot, I want to highlight and zoom in on two different areas. To do this I used the ggforce package and the facet_zoom( ) function. However, this function only creates one inset plot, and I can find no…
Daniel Valencia C.
  • 2,159
  • 2
  • 19
  • 38
2
votes
0 answers

Discontinuous y-axis in inset plot with `ggplot2`

I am trying to insert a Kaplan-Meier inset "zoom" plot into the same KM plot (when Survival curves are very similar to allow more accurate inspection). This is currently used by many journals. Unfortunately, I find creating an inset plot with a…
q050cr
  • 21
  • 3
2
votes
0 answers

Remove extra bottom padding when using Accompanist Insets library in Compose

I have a column, containing TextFields, and a button at the bottom of the screen. I'm trying to make the Column scrollable so that I can scroll down to see the button that hides behind the keyboard when that opens. My Column looks like this. …
2
votes
1 answer

WindowInsetsController#hide(statusBars()) causes content to jump

At the moment my activity calls requestWindowFeature(Window.FEATURE_NO_TITLE) window.setFlags(FLAG_FULLSCREEN, FLAG_FULLSCREEN) inside of its onCreate method in order to hide the status bar and display in fullscreen mode. As part of the migration…
Lingviston
  • 5,479
  • 5
  • 35
  • 67
2
votes
1 answer

How to do an inset border with a border radius on an image

How do to an inset border with a border radius on an image like so: I can use the outline CSS property .img{ border-radius: 16px; outline: 3px solid #fece40; outline-offset: -16px; } But that gives me the inset border but there is no…
neilgee
  • 528
  • 1
  • 6
  • 17
2
votes
1 answer

Support NSDirectionalEdgeInsets for UIButton's contenEdgeInsets?

I would like to use NSDirectionalEdgeInsets to UIButton's contentEdgeInsets and titleEdgeInsets. Is that possible? Background For localization purposes, an iOS application may be required to adapt to both Left-To-Right and Right-To-Left languages…
om-ha
  • 3,102
  • 24
  • 37
2
votes
0 answers

annotation_custom is not placing the grobs

Here is a code I have written: sp9 <- ggplot(PWPdf3_12_1250, aes(log10(Avsize), log10(Prob))) + geom_point(color= "blue") plotx <- ggplot(mpg, aes(displ, hwy)) + geom_point() + geom_point(color= "blue") #plot example from internet plotx + …
2
votes
2 answers

How to deal with many different insets for GridBagConstraints?

Java Swing: I've created a method to return a GridBagConstraints so that I don't need to constantly call new GridBagConstraints(); and set a bunch of variables. It works like such: displayPanel.add(labelPanel, createGBC(0, 0,…
Edward Guo
  • 175
  • 1
  • 13
2
votes
3 answers

How can I set the insets of a tooltip in Java?

I created a Tooltip with a HTML formated text, this works fine, but I have no space between border and text. How can I set Insets or an EmptyBorder?
tomkpunkt
  • 1,393
  • 2
  • 15
  • 24
2
votes
1 answer

Getting Each Monitor Inset In Java

Don't mind the use of the Window Insets, but pay more attention to the use of the ScreenInsets, which is saved locally as Insets insets; I print the insets.bottom, and for every monitor the taskbar height shows up, even though the taskbar is only…
2
votes
2 answers

add inset to textfield created in storyboard?

is there a way to add inset in an existing UITextField which was created in the storyboard? I added the constraints, an IBOutlet and I use : fromTF.textRectForBounds(CGRectInset(fromTF.bounds, 50, 0)) But there is not the inset. Is it only…
Paul
  • 6,108
  • 14
  • 72
  • 128
2
votes
1 answer

What do I have to do after setting contentInset or automaticallyAdjustsScrollViewInsets for it to actually beeing applied?

I have got an UIViewController containing an UIScrollView. Initially automaticallyAdjustsScrollViewInsets is not set (so it should default to YES). On some user interaction I set automaticallyAdjustsScrollViewInsets to NO, so I can set my own…
John
  • 33
  • 1
  • 5
2
votes
1 answer

Android beveled/inset border

I've seen on other apps people using the really nice looking borders/dividers that look like they are inset. Something like that. I'd like to create one of my own using an XML drawable and I'm a little confused about how it needs to be done. I know…
user1513171
  • 1,912
  • 6
  • 32
  • 54
1 2
3
8 9