Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Solved] Part of autosuggest div that overflows qtip is hidden
9th October, 18:14 (This post was last modified: 9th October 18:16 by Action Jackson.)
Post: #1
[Solved] Part of autosuggest div that overflows qtip is hidden
Hey guys,

I have a form in a qtip, and an autosuggest on one of the form's inputs. When the suggestion div appears, the part of the div that flows beneath the qtip's bottom edge is hidden.

[Image: qtipHelp-image1.png]

Here is the CSS for div.autosuggest (I tried setting its z-index to 7000 since .qtip has a z-index of 6000; The autosuggest is from scriptaculous http://wiki.github.com/madrobby/scriptac...ocompleter).
JS Code
.autosuggest { margin: 0; padding: 0; -moz-box-sizing: border-box; box-sizing: border-box; border: 1px solid #333; position: absolute; width: 250px; background-color: white; z-index: 7000; }


I tried turning off .qtip-wrapper { overflow-y: hidden; } with FireBug, but that gets me a vertical scroll bar on the right side.

[Image: qtipHelp-image2.png]

I'm using the minified version of qTip version 1.0.0-rc3, May 12 2009. Screenshots are from FireFox 3.5.2, but the same thing happens in Safari 4.0.3. Haven't tried IE yet, but I'd image it's the same problem.

It has to be something with CSS:overflow/height/position, right? Shouldn't the suggestion div exist outside of the qtip since it's absolutely positioned? It's embarrassing, but I can't figure it out. Thanks!
Find all posts by this user
Quote this message in a reply
10th October, 21:38
Post: #2
Part of autosuggest div that overflows qtip is hidden
Hey-o! After some fresh thinking this morning, I removed the .qtip-wrapper's positioning and it worked. I have no idea where else that will break things downstream, but we'll see.

To remove the .qtip-wrapper's positioning, find line 1080 in the source code (as of 10/10/09) and remove the bold part. Pretty simple...
JS Code
1080: '  <div class="qtip-wrapper" style="position:relative; overflow:hidden; text-align:left;">' +


By the way, I didn't want to gush in the first post, but I love this library!!! Awesome job Craig! Thank you for all your hard work.
Find all posts by this user
Quote this message in a reply
25th August, 11:18
Post: #3
RE: Part of autosuggest div that overflows qtip is hidden
Here is my solution for similar problem:
JS Code
$(element).qtip({
  ...,
  api: {
    onRender: function() {
      this.elements.wrapper.css('overflow', 'visible');
      this.elements.contentWrapper.css('overflow', 'visible');
      this.elements.content.css('overflow', 'visible');
    },
  ...
  }
});
Find all posts by this user
Quote this message in a reply
25th August, 18:27
Post: #4
RE: Part of autosuggest div that overflows qtip is hidden
Yeah the qtip-wrapper has relative positioning and overflow set to hidden by default... removing it can cause problems with the border-radius stuff though Sad Meh... qTip2 is where it's at anyway guys, upgrade and feel the love! Wink

Craig Thompson
Web Developer / Designer
Craigsworks
http://www.craigsworks.com
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  [Solved] qTip Ajax data for text in a div akhil_csit 1 316 14th March 19:27
Last Post: Craig
  can't hide qtip in a “position: absolute;” div shdog 1 281 14th March 17:35
Last Post: Craig
  show qtip in a specified div or position myapweb 1 587 27th December 17:53
Last Post: Craig
  [Solved] QTip content from existing div element on page? dcash 4 2,525 8th December 18:29
Last Post: Craig
  [Solved] Problem with Fixed Position div and scrolling homerlex 7 1,466 26th October 19:35
Last Post: Craig
  [Solved] Add div tage in Qtip. Elango 1 1,025 12th July 17:31
Last Post: Craig
  [Solved] Is div of qtip can move? igood 9 2,241 3rd July 23:01
Last Post: Sempiterna
  [Solved] Can't bind qtip to a div??? SDirk 1 729 20th June 17:18
Last Post: Craig
  [Solved] grabbing tooltip content from css hidden divs nick 4 811 26th May 01:47
Last Post: nick
  [Solved] Mouseover Div With Child Components hluu 2 1,282 14th May 18:32
Last Post: hluu



User(s) browsing this thread: 1 Guest(s)