Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
onContentUpdate set new width?
10th June, 15:06
Post: #1
onContentUpdate set new width?
I have some content that shows when clicked, however it isnt updating the width when it is shown. The div is initially set to Display:none, but when clicked it is shown and doesn't update width, see below:

PS: Only works correctly in IE.

JS Code
$(this).qtip(
     {
         content: content,
        position: {
		corner: {
		    target: "topMiddle",
		    tooltip: "bottomMiddle"
		}
	},
	style: {
		name: 'light',
		tip: true,
                width: { max: 350 }
 
         },
          hide: { fixed: true, delay: 200  },
          show: {
                   when: { event: 'click' } 
 
                 },
          api: {
                      onContentUpdate: function() {
                           $('#register1').click(function() {
                                 $('#bestregister').toggle();
                                 $('#bestlogin').toggle();
                           });
                      }
                 }
      });
Find all posts by this user
Quote this message in a reply
13th June, 14:40
Post: #2
RE: onContentUpdate set new width?
I'm not too sure what the problem is. Can you elaborate a bit more please?

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
  How set width that's greater than default max on for exactly one tip? AlKoch 5 111 7th May 21:33
Last Post: Craig
  [Solved] Autohide tooltips after set time phuson 25 4,112 9th December 11:40
Last Post: stevenday
  [Solved] ajax tip width help jondow 2 702 10th November 21:21
Last Post: jondow
  [Solved] Ajax element width trogo 1 860 27th September 12:37
Last Post: Craig
  [Solved] How to keep tooltip on screen for sure (Yes I have viewport set) mplungjan 2 789 9th September 14:40
Last Post: mplungjan
  [Solved] Need to set delay for only one Qtip of 3 DilipRed 1 587 31st May 16:31
Last Post: Craig
  [Solved] Reduced width in IE8 JediBW 5 997 15th February 18:19
Last Post: Craig
  [Solved] How to set a default setting wizbay 1 560 29th January 13:24
Last Post: Craig
  [Solved] Width Problem in FireFox and Safari - qtip2 afamdi 1 1,894 18th January 14:30
Last Post: Craig
  [Solved] i don't want to use fixed width buremba 2 773 6th January 02:59
Last Post: Craig



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