Fix for right column getting pushed off the side
This commit is contained in:
parent
4ca4c7823a
commit
ca501a41c5
|
@ -587,6 +587,7 @@ var ZoteroItemPane = new function()
|
||||||
button.setAttribute('tooltiptext', 'Switch to two fields');
|
button.setAttribute('tooltiptext', 'Switch to two fields');
|
||||||
lastName.setAttribute('singleField', 'true');
|
lastName.setAttribute('singleField', 'true');
|
||||||
button.setAttribute('onclick', "ZoteroItemPane.switchCreatorMode(this.parentNode.parentNode, false)");
|
button.setAttribute('onclick', "ZoteroItemPane.switchCreatorMode(this.parentNode.parentNode, false)");
|
||||||
|
lastName.setAttribute('flex', '1');
|
||||||
|
|
||||||
// Remove firstname field from tabindex
|
// Remove firstname field from tabindex
|
||||||
var tab = parseInt(firstName.getAttribute('tabindex'));
|
var tab = parseInt(firstName.getAttribute('tabindex'));
|
||||||
|
@ -618,6 +619,7 @@ var ZoteroItemPane = new function()
|
||||||
button.setAttribute('tooltiptext', 'Switch to single field');
|
button.setAttribute('tooltiptext', 'Switch to single field');
|
||||||
lastName.setAttribute('singleField', 'false');
|
lastName.setAttribute('singleField', 'false');
|
||||||
button.setAttribute('onclick', "ZoteroItemPane.switchCreatorMode(this.parentNode.parentNode, true)");
|
button.setAttribute('onclick', "ZoteroItemPane.switchCreatorMode(this.parentNode.parentNode, true)");
|
||||||
|
lastName.setAttribute('flex', '0');
|
||||||
|
|
||||||
// Add firstname field to tabindex
|
// Add firstname field to tabindex
|
||||||
var tab = parseInt(lastName.getAttribute('tabindex'));
|
var tab = parseInt(lastName.getAttribute('tabindex'));
|
||||||
|
@ -716,9 +718,13 @@ var ZoteroItemPane = new function()
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (fieldName.indexOf('firstName')!=-1){
|
||||||
|
valueElement.setAttribute('flex', '1');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
var firstSpace;
|
var firstSpace;
|
||||||
if(typeof valueText == 'string')
|
if(typeof valueText == 'string')
|
||||||
firstSpace = valueText.indexOf(" ");
|
firstSpace = valueText.indexOf(" ");
|
||||||
|
|
||||||
|
@ -735,7 +741,8 @@ var ZoteroItemPane = new function()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// 29 == arbitary length at which to chop uninterrupted text
|
// 29 == arbitary length at which to chop uninterrupted text
|
||||||
else if ((firstSpace == -1 && valueText.length > 29 ) || firstSpace > 29)
|
else if ((firstSpace == -1 && valueText.length > 29 ) || firstSpace > 29
|
||||||
|
|| (fieldName && fieldName.substr(0, 7)=='creator'))
|
||||||
{
|
{
|
||||||
valueElement.setAttribute('crop', 'end');
|
valueElement.setAttribute('crop', 'end');
|
||||||
valueElement.setAttribute('value',valueText);
|
valueElement.setAttribute('value',valueText);
|
||||||
|
|
|
@ -42,8 +42,8 @@
|
||||||
|
|
||||||
#item-pane
|
#item-pane
|
||||||
{
|
{
|
||||||
width: 300px;
|
width: 330px;
|
||||||
min-width: 300px;
|
min-width: 330px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#zotero-pane toolbar
|
#zotero-pane toolbar
|
||||||
|
|
Loading…
Reference in New Issue
Block a user