Questions tagged [frame]

Frame refers to a property of a UIView or an NSView in Objective-C. It is a 4-floating-point representation of the View's location in the parent view or window. ... Use the [frames] tag for HTML frames (not iframes).

Frame refers to a property of a UIView or an NSView in Objective-C. It is a 4-floating-point representation of the View's location in the parent view or window.

This tag does NOT refer to HTML <frame> or <iframe> tags.

Do not confuse this tag with either.

3698 questions
66
votes
2 answers

How to remove the device's frame on Android Studio's emulators

I am making an android app on Android Studio and I have this emulator for Nexus S. When the emulator is running, it shows the frame of the device. I want the emulator to show the screen of the device only. I've tried looking in the settings but…
user5373121
60
votes
15 answers

JsPDF - Not allowed to navigate top frame to data URL

After updating Google Chrome, the report jsPDF in a new Window does not work any more. The console shows the message: Not allowed to navigate top frame to data URL: …
Márcio Rossato
  • 971
  • 1
  • 11
  • 20
58
votes
3 answers

Python Tkinter clearing a frame

I am trying to clear out a frame in the tkinter so that the new contents can be written (refresh information) but i could not manage to do it. I am aware of these frame.destroy() frame.pack_forget() frame.grid_forget() but frame.destroy() will…
Chris Aung
  • 9,152
  • 33
  • 82
  • 127
56
votes
12 answers

Calculating UILabel Text Size

I am drawing UILabels programmatically. They get their sizes from a database. So I cannot just use sizeToFit. I have already implemented a function that redraws UILabels with a passed ratio. So all I need to find is the text in UILabel from my view…
Sarp Kaya
  • 3,686
  • 21
  • 64
  • 103
54
votes
12 answers

How to set the activity indicator in the navigation bar?

I am new to iphone development. I want to set an activity indicator in the navigation bar. I see my activity indicator below the navigation bar. My code is here - (IBAction) gomethod : (id) sender { xxMapSubviewcontroller =…
Warrior
  • 39,156
  • 44
  • 139
  • 214
53
votes
1 answer

How to stop Tkinter Frame from shrinking to fit its contents?

This is the code that's giving me trouble. f = Frame(root, width=1000, bg="blue") f.pack(fill=X, expand=True) l = Label(f, text="hi", width=10, bg="red", fg="white") l.pack() If I comment out the lines with the Label, the Frame displays with the…
Johnston
  • 707
  • 2
  • 6
  • 8
52
votes
4 answers

How to get the frame of a view inside another view?

I have an UIImageView in the self.view (the main View) and inside it there is a UIButton. I want to know what's the frame of UIButton in self.view not in UIImageView.
cyclingIsBetter
  • 17,447
  • 50
  • 156
  • 241
51
votes
4 answers

Get width of a view using in SwiftUI

I need to get width of a rendered view in SwiftUI, which is apparently not that easy. The way I see it is that I need a function that returns a view's dimensions, simple as that. var body: some View { VStack(alignment: .leading) { …
Alexey Primechaev
  • 907
  • 1
  • 6
  • 13
49
votes
8 answers

Is there a client-side way to detect X-Frame-Options?

Is there any good way to detect when a page isn't going to display in a frame because of the X-Frame-Options header? I know I can request the page serverside and look for the header, but I was curious if the browser has any mechanism for catching…
Newtang
  • 6,414
  • 10
  • 49
  • 70
48
votes
5 answers

How to get the actual [UIScreen mainScreen] frame size?

I'm a bit annoyed. I have an app with the statusbar visible in the main window. Since I would like to setup my views and their frame sizes dynamically (perhaps the status bar takes up 40 pixels during a phone call, for example). I can do one of the…
runmad
  • 14,846
  • 9
  • 99
  • 140
46
votes
6 answers

UIScreen MainScreen Bounds returning wrong size

So I created a new project with the latest version of XCode and tried to log the screen size of my app (to determine the device type for UI). I ran the following code from my iPhone 5: NSLog(@"%f", [[UIScreen mainScreen] bounds].size.height); This…
Liftoff
  • 24,717
  • 13
  • 66
  • 119
44
votes
5 answers

How to set a JavaFX Stage/Frame to Maximized

I'm using JavaFX 2. I want my frame to open maximized but I'm not seeing a way. I searched a bit on the internet without success. For the stage I see setFullScreen() and setIconified() but I don't see anything like setMaximized().
Dorothy
  • 2,842
  • 10
  • 33
  • 46
41
votes
7 answers

ios10: viewDidLoad frame width/height not initialized correctly

Since upgrading to XCode8 GM and ios10, all of my views created via Interface Builder are not being initialized correctly until much much later than expected. This means in viewDidLoad, cellForRowAtIndexPath, viewWillAppear, etc, the frame size is…
Miro
  • 5,307
  • 2
  • 39
  • 64
40
votes
2 answers

tkinter gui layout using frames and grid

My gui layout looks almost nothing like what I expect so I assume there are some basics that I don't understand. I assumed that frames contain their own 'grid space' (row, column) but the behavior I see doesn't bear that out, and I'm at a loss…
shawn
  • 549
  • 1
  • 5
  • 11
39
votes
2 answers

How do I change the background of a Frame in Tkinter?

I have been creating an Email program using Tkinter, in Python 3.3. On various sites I have been seeing that the Frame widget can get a different background using Frame.config(background="color"). However, when I use this in my Frames it gives the…
IPDGino
  • 706
  • 1
  • 8
  • 17