> 3.) For the later use-case, and for making this 'sidebar 2nd display
> area' feature more practical to readers too, FAQViewerPlugin (by Eric
> too) comes closest. ...Two minor disadvantages for the
> use of this plugin is that it displays 'prev' and 'next' buttons at
> the bottom of the displayed tiddler and - which is much worse - jumps
> there at the bottom if the sidebars size is too small for the whole
> tiddler - which will be most of the time.
>

Could solve this major annoyance of jumping to the 'prev' and 'next'
buttons at the bottom of long tiddlers by changing 'input type' from
'button' to 'hidden' in the plugin code. :-)

> ... However one of these little essential macros has been
> married with an existing, and renamed to TiddlersBarPluginMPKos.
> ..., I would be very glad if someone could help with
> extracting this piece of code, now married and only working with
> TiddlersBarPluginMPKos together, into a small independently working
> plugin:
>
> fitTiddlerDisplay: function() {

Got it as far as quietening the plugin manager's error message by
wrapping it by error and trial like this:

//{{{
config.macros.tiddlerFit = {
        refresh: function(place,params){
                removeChildren(place);
                config.macros.tiddlerFit.fitTiddlerDisplay();
        },
        fitTiddlerDisplay: function() {
                var tDFrac;
                if (config.options["txtUserTiddlerWidth"] == undefined
                        || config.options["txtUserTiddlerWidth"] > 100
                        || config.options["txtUserTiddlerWidth"] < 0)
                        tDFrac = 0.98;
                else tDFrac = config.options["txtUserTiddlerWidth"]/100;

                var sideFrac = ( 1 - tDFrac ) / 2;
                var wiDiv = document.getElementById("testWidthDiv");
                var w_all = wiDiv.offsetWidth;
                if (jQuery('#leftBarWrapper').hasClass('fixedSidebarWrapper'))
                        var w_left = jQuery('#leftBarWrapper').width();
                else var w_left = 0;
                if (jQuery('#rightBarWrapper').hasClass('fixedSidebarWrapper'))
                        var w_right = jQuery('#rightBarWrapper').width();
                else var w_right = 0;
                var w_free = w_all - w_left - w_right;
                var leftBorder_dA = w_left + sideFrac*w_free;
                jQuery('#displayArea').css('left',leftBorder_dA+'px');
                jQuery('#displayArea').width(tDFrac*w_free);
                //console.log("fitted");
        },
}
//}}}

Though doesn't really works yet, since the tiddlers aren't fitted
correctly upon loading, but too wide and thereby overlapping/disabling
the sidebars supposed to open upon hover. But after a 'close all' they
are fitted correctly and it's working. That's now anyway seems only a
minor bug to me.

However, what seems really needed - also because an image map menu as
in the center of the display would be rather easy accessible in one of
the sidebars (while where it is now it is hidden by tiddlers, and
making it visible as well as turning the tiddlers display on again
each needs an additional click. 2 additional clicks which wouldn't be
needed in the sidebar, while remaining simultaneously in sight!) - is
a way to enable one of the sidebar in their fixed and resizable states
upon loading the TW. Tried to modify the concerned PageTemplate
definition:

<div id='leftBarWrapper' class='fluidSidebarWrapper' style='left: 0px;
top: 1.9em;' data-side='left' data-savedWidth='0px' data-
savedHeight='0px'>
<div id='leftBar' class='sidebar' style='width: 0px; display: none;'>
<div id='TLSbox' macro='sidebarLock' style='width: 1em; margin-left:
0px; margin-right: auto;'>
</div>

for example to this:

<div id='leftBarWrapper' class='fixedSidebarWrapper resizable'
style='left: 0px; top: 1.9em;' data-side='left' width='auto'
height='0px'>
<div id='leftBar' class='sidebar' style='width: auto;'>
<div id='TLSbox' macro='sidebarLock' style='width: 1em; margin-left:
0px; margin-right: auto;'>
</div>

Though that opens the TW with an open left sidebar, it isn't resizable
unless the sidebar lock button twice clicked. Only then the tiddlers
fit well before they extend behind the left sidebar accross the whole
screen width.

Any other ideas?

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.

Reply via email to