Re: [PHP-WEBMASTER] svn: /web/php/trunk/ include/header.inc js/common.js js/jquery.autocomplete.js js/jquery.autocomplete.pack.js styles/structure.css styles/theme.css

[email protected] (Paul Dragoonis)
Newsgroups php.webmaster
Message-ID <[email protected]>
On Thu, Dec 30, 2010 at 8:13 PM, Hannes Magnusson
<[email protected]> wrote:
> On Thu, Dec 30, 2010 at 20:50, Paul Dragoonis <[email protected]> wrote:
>> On Thu, Dec 30, 2010 at 7:18 PM, Stewart Lord <[email protected]> wrote:
>>>
>>> On 2010-12-30, at 3:51 AM, Paul Dragoonis wrote:
>>>
>>>> Hey Stewart,
>>>>
>>>> The documentation dropdown looks really nice, but it's currently
>>>> broken in 2 parts.
>>>> First one is that you have to click twice on it, which i'm looking to fix.
>>>> Secondly, if you click the dropdown button about 5 times really
>>>> quickly the page completely screws up.
>>>> My prediction is that because you're using appendTo() every time you
>>>> click the button, this is a big DOM change, and the DOM gets confused
>>>> and backs out of what it's doing.
>>>> So i'm going to change the implementation so that there are 0 DOM
>>>> movement changes needed and just a show/hide of content, this will
>>>> allow for a snappier response and less DOM work.
>>>>
>>>> Ping me an email back if you have started doing changes on the
>>>> Documentation dropdown since your last commit.
>>>>
>>>> Cheers.
>>>> Paul.
>>>
>>>
>>> Hi Paul, any help on this would be appreciated. I was going to fix it, but if you can tackle it then I'll start looking at the home page design.
>>>
>>> Cheers,
>>> Stew
>>
>>
>> "Committed revision 306878." - We now have TOC working as mentioned.
>> "svn up" and go to the 'strpos' page or something and give it a go,
>> comments appreciated.
>>
>
>
> The effect is pretty.. but it broke the actual anchors.. I can no
> longer right-click the link and do 'copy link location' or open in new
> tab :( (making it therefore harder to share direct links..).
> Don't know if thats an issue... if you mouse over the header, slightly
> to the right, you can get a direct link..
> I wonder if clicking those should use scrollTo() to?
>
> -Hannes
>


I have fixed all the issues you raised now. going to the right of an
elem and using the direct link, it currently uses the anchor, and this
still works fine. I can think of a few problems with making them a
scrollTo(), since you click it just to get the href, then no need for
a scrollTo() here.

Comitted: 306880

Cheers.
Paul.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.