fixed firefox synapse card styling

This commit is contained in:
Bashar Jabbour 2014-11-22 20:49:59 -05:00
parent 7bf87c7a4b
commit 13118d0ea9
3 changed files with 6 additions and 5 deletions

View file

@ -7493,7 +7493,7 @@ Graph.Label.Native = new Class({
// START METAMAPS CODE // START METAMAPS CODE
var index; var index;
for (index = 0; index < customLabel.length; ++index) { for (index = 0; index < customLabel.length; ++index) {
ctx.fillText(customLabel[index], pos.x, pos.y + node.getData("height") + 6 + (25*index)); ctx.fillText(customLabel[index], pos.x, pos.y + node.getData("height") + 23 + (25*index));
} }
// END METAMAPS CODE // END METAMAPS CODE
}, },

View file

@ -176,7 +176,7 @@ Metamaps.JIT = {
context.textAlign = 'center'; context.textAlign = 'center';
context.font = '14px din-medium'; context.font = '14px din-medium';
context.fillText(count, x, y - 9); context.fillText(count, x, y + 5);
}; };
if (!canvas.denySelected && desc != "" && showDesc) { if (!canvas.denySelected && desc != "" && showDesc) {
@ -187,7 +187,7 @@ Metamaps.JIT = {
var ctx = canvas.getCtx(); var ctx = canvas.getCtx();
ctx.font = 'bold 14px arial'; ctx.font = 'bold 14px arial';
ctx.fillStyle = '#FFF'; ctx.fillStyle = '#FFF';
ctx.textBaseline = 'top'; ctx.textBaseline = 'alphabetic';
var arrayOfLabelLines = Metamaps.Util.splitLine(desc, 30).split('\n'); var arrayOfLabelLines = Metamaps.Util.splitLine(desc, 30).split('\n');
var index, lineWidths = []; var index, lineWidths = [];
@ -223,7 +223,7 @@ Metamaps.JIT = {
ctx.fillStyle = '#424242'; ctx.fillStyle = '#424242';
ctx.textAlign = 'center'; ctx.textAlign = 'center';
for (index = 0; index < arrayOfLabelLines.length; ++index) { for (index = 0; index < arrayOfLabelLines.length; ++index) {
ctx.fillText(arrayOfLabelLines[index], x + (width / 2), y + 4 + (16 * index)); ctx.fillText(arrayOfLabelLines[index], x + (width / 2), y + 18 + (16 * index));
} }
if (synapseNum > 1) { if (synapseNum > 1) {
@ -307,7 +307,7 @@ Metamaps.JIT = {
type: 'Native', //Native or HTML type: 'Native', //Native or HTML
size: 20, size: 20,
family: 'arial', family: 'arial',
textBaseline: 'top', textBaseline: 'alphabetic',
color: Metamaps.Settings.colors.labels.text color: Metamaps.Settings.colors.labels.text
}, },
//Add Tips //Add Tips

View file

@ -672,6 +672,7 @@ font-family: 'din-regular', helvetica, sans-serif;
#editSynUpperBar { #editSynUpperBar {
background: #FFFFFF url(synapse32.png) no-repeat 8px center; background: #FFFFFF url(synapse32.png) no-repeat 8px center;
min-height: 48px; min-height: 48px;
height: 48px;
border-bottom: 1px solid #222222; border-bottom: 1px solid #222222;
display: table; display: table;
width: 100%; width: 100%;