Changeset 262


Ignore:
Timestamp:
Nov 1, 2006, 1:14:58 PM (13 years ago)
Author:
David Sheldon
Message:

Stop the anooying wrapping problem with IE.

Location:
trunk/npemap.org.uk/static/tiles
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/npemap.org.uk/static/tiles/grid.css

    r254 r262  
    6666   span.terms {
    6767                 margin-top: 0px;
    68      font-family: sans;
     68     font-family: sans-serif;
    6969                 font-size: 65%;
    7070                 line-height: 100%;
     
    119119  background-color: #DDFF9b;
    120120  border: 1px solid black;
    121   margin: 0.5em 0 0 0 ;
    122121}
    123122
     
    138137
    139138div#theTitle {
     139  margin: 0 0 0.5em 0;
    140140  background-color: #667f36;
    141141  text-align: center;
     
    144144}
    145145div#theTitle h1 {
    146   margin:0;
     146        margin: 0;
    147147  padding: 0.5em 0 0 0.5em;
    148148  height: 1.5em;
    149   font-family: sans;
     149  font-family: sans-serif;
    150150}
    151151
    152152div#map {
    153   margin: 0.5em 0 0 0 ;
    154153  border: 1px solid black;
    155154}
  • trunk/npemap.org.uk/static/tiles/mapTiles.js

    r254 r262  
    213213
    214214function drawTable() {
    215   sizeGridX = Math.round((screenWidth / tileWidth)-2)
    216   sizeGridY = Math.round((screenHeight / tileHeight)-1)
     215  sizeGridX = Math.floor(((screenWidth -210) / tileWidth));
     216  sizeGridY = Math.floor(((screenHeight -150) / tileHeight));
    217217 
    218   page = ''
     218  page = '';
    219219  for(var y=sizeGridY; y>=1; y--) {
    220220    for(var x=1; x<=sizeGridX; x++) {
     
    225225 
    226226  $('map').innerHTML = page
     227  $('map').style.width = sizeGridX * tileWidth ;
    227228}
    228229
Note: See TracChangeset for help on using the changeset viewer.