max-width : 500px;
}
+div.cdm.expandable.active div.cdmHeader span.titleWrap {
+ white-space : normal;
+}
+
div.cdm.expandable div.cdmHeader a.title {
font-weight : bold;
color : #555;
div#floatingTitle {
position : absolute;
z-index : 5;
- top : 26px;
+ top : 25px;
right : 0px;
left : 0px;
border-color : #ccc;
- border-width : 0px 0px 1px 0px;
+ border-width : 1px 0px 1px 0px;
border-style : solid;
background : #fcfcfc;
color : #555;
white-space : nowrap;
}
+div#floatingTitle div.hlFeed a {
+ border-radius : 4px;
+ display : inline-block;
+ padding : 1px 4px 1px 4px;
+}
+
div#floatingTitle span.updated {
padding-right : 10px;
white-space : nowrap;
div#floatingTitle span.titleWrap {
width : 100%;
+ white-space : normal;
}
div#floatingTitle .dijit,
if (hsp) hsp.innerHTML = "";
}
- if (getInitParam("cdm_expanded") && isCdmMode()) {
+ if (isCdmMode()) {
updateFloatingTitle();
}
if (event) Event.stop(event);
PluginHost.run(PluginHost.HOOK_ARTICLE_COLLAPSED, id);
+
+ if (row.offsetTop < $("headlines-frame").scrollTop)
+ scrollToRowId(row.id);
+
+ Element.hide("floatingTitle");
+ $("floatingTitle").setAttribute("rowid", false);
}
} catch (e) {
function updateFloatingTitle() {
try {
var hf = $("headlines-frame");
- var child = $("RROW-" + _active_article_id);
- var elems;
-
- if (getInitParam("cdm_auto_catchup"))
- elems = [$$("RROW-" + _active_article_id)];
- else
- elems = $$("#headlines-frame > div[id*=RROW]");
+ var elems = $$("#headlines-frame > div[id*=RROW]");
for (var i = 0; i < elems.length; i++) {
PluginHost.run(PluginHost.HOOK_FLOATING_TITLE, child);
}
- if (child.offsetTop < hf.scrollTop - header.offsetHeight)
+ if (child.offsetTop < hf.scrollTop - header.offsetHeight &&
+ child.offsetTop + child.offsetHeight - hf.scrollTop > header.offsetHeight)
Element.show("floatingTitle");
else
Element.hide("floatingTitle");