frame

jQuery: How to hide a frame on parent?

主宰稳场 提交于 2019-12-12 02:16:42
问题 I have the main page that contains multiple frames within the frameset. One of the frames is a toolbar with buttons, I would like to be able to press a button on that toolbar and it will go and hide one of the frames on the main page. I've tried the following from within the toolbar frame but it doesn't work... $(document).parent.$("#other_frame").hide("slow"); I'm REALLY new to jQuery and after searching the web I'm pretty much lost. Thank you for your help. EDIT: My complete main page

Cannot determine when UIImageView frames are equal

大城市里の小女人 提交于 2019-12-12 02:15:35
问题 I have two layers. The bottom layer consists of hidden UIImageView s, the upper layer consists of visible UIImageView s. When all the frames of the bottom layer UIImageView s are equal to the frames of the upper layer UIImageView s, you have to see that in a NSLog . The problem is that the boolean method which is called by a NSTimer always returns true immediately, so I see the NSLog . I only want to see the NSLog when all corresponding frames are equal to each other. This is my code: - (void

iOS size table row based on content in textView

只愿长相守 提交于 2019-12-12 00:48:09
问题 I am trying to size a row in my table to the height of a textView so that the user does not have to scroll the textView, but rather scrolls the table. What I have implemented so far seems to work most of the time although sometimes the row height is a little too small, forcing the user to scroll the textview a little, or the row height is too much create a lot of whitespace after the text ends. How can I frame it just right? Code: - (void)viewDidAppear:(BOOL)animated { [super viewDidAppear

“setFrame” doesn't work for UIScrollView in iOS

大兔子大兔子 提交于 2019-12-12 00:31:36
问题 I've put a ScrollView in storyboard. Next, in the code I call self.scroll.frame = CGRectMake(100, 0, 800, 900); I suppose the scroll should change the position into (100, 0) But somehow it still remains in the original position where was set in storyboard. What am I missing ? 回答1: Yes it won't work for any view in autolayout system at all if added using storyboard or xib. If you want to set frame initialise in your code. @property (nonatomic,strong) UIScrollView *scrollView; _scrollView = [

Play MovieClip frame by frame in addition after same function is executed several times

若如初见. 提交于 2019-12-12 00:26:55
问题 I have a MovieClip named fails_mc, it consists of 3 soccer balls and in my game every time my player fails I need to add an X mark over 1 ball, I have a hitTestObject detecting when the ball hits the goal area, but when the ball goes outside I need to play 1 frame inside the fails_mc and add the X mark to a ball ( I have 3 different png files inside fails_mc, 1 on each frame), this is the code I’m using but I don’t know how to play frame by frame the fails_mc (keep in mind that the same

Bounds of an imageView in a scrollView with rotation

≡放荡痞女 提交于 2019-12-12 00:04:33
问题 I have a full screen UIScrollView to display my image, which employ some codes from PhotoScroller.app from apple sample code. I am little confused on the bounds of a imageView in a scrollView with rotation, and the convertPoint. Any help will be appreciated! ps. For more detail codes please find in Center of bounds NSLog in call willRotateToInterfaceOrientation:duration: 2012-05-12 11:35:45.666 imageScrollView frame X and Y are 0.000000 and 0.000000 2012-05-12 11:35:45.672 imageScrollView

JSwing components don't appear until frame is resized [duplicate]

佐手、 提交于 2019-12-11 23:18:44
问题 This question already has an answer here : Java Layout not showing components (sometimes) (1 answer) Closed 3 years ago . bit of an issue. I'm trying to make a JSwing frame with a label, textfield, and two buttons. When the routine first runs, the buttons and the textframe are invisible. When I resize the frame, the buttons and textframe appear, and remain there when I return the frame to its original size. Any ideas why this is happening? 回答1: You should call setVisible(true) on your frame

iAd frame returning wrong height on iPhone

橙三吉。 提交于 2019-12-11 21:19:31
问题 I have an iAd which I am trying to position at the bottom of the screen though when I try to get the height of the ad so that I can put it at the bottom. This error only occurs when I enter the screen in a landscape orientation as the ad is taller in the portrait orientation and only on the iPhone simulator as on an ipad the ads are the same height. The method I am using to put the add at the bottom is by setting the y value of the ad frame to the height of the view minus the height of the ad

Python TKinter: frame and canvas will expand horizontally, but not vertically, when window is resized

心不动则不痛 提交于 2019-12-11 19:31:41
问题 For some reason, I was able to get this TKinter frame ( allValOuterFrame ) to expand both vertically and horizontally when its window is resized, but however, it appears that the canvas that the frame holds, as well as the frame and vertical scrollbar inside that canvas, will only expand horizontally. Could someone please explain why? Here is my code: # At first I only had "from X import *" but then discovered that # it is bad practice, so I also included "import X" statements so # that if I

UIView frame issue

笑着哭i 提交于 2019-12-11 19:28:51
问题 I am having a weird problem. I have two view controllers. A homeViewController and a settingViewController. homeViewController has no navigation bar while the settingViewController has. Now the issue is when i push settingViewController and get back from it my homeViewController view's height gets small. (view's height - navigation bar height) (don't want to adjust frame manually) // homeViewController -(void) settingButtonPressed { SettingsViewController *svc = [[SettingsViewController alloc