Ignore:
Timestamp:
2024-03-28T00:03:56+13:00 (3 months ago)
Author:
anupama
Message:
  1. Simplified collage applet parameters for GS3. TODO: Just noticed I can remove sitename as it's now only used for href_musthave, which I can set as an official collage applet parameter, so moving that out of the Java code will also reduce my unncessary code additions. 2. Got the status bar working at last, which was a great pain, as it mattered when it was added and where in the code to get the sizing right without overlapping with the collage display (or being obscured entirely by it). It had to be added in main. TODO: a param to hide the status bar as my new code to the collage applet may be the only one to use it, and I only added the showStatus messages to test it works.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/src/java/org/greenstone/applet/GsdlCollageApplet/DisplayImages.java

    r38881 r38885  
    9292    super("DisplayImages");
    9393
    94     final int xDim_fallback = 600;
    95     final int yDim_fallback = 300;
    96    
    9794    // parameters saved locally
    9895    app_             = app;
     
    110107        //app_y_dim_  = (app_.getHeight() == 0) ? yDim_fallback : app_.getHeight();
    111108        app_x_dim_  = app_.getWidth();
    112         app_y_dim_  = app.getHeight();
     109        app_y_dim_  = app_.getHeight();
    113110
    114111        System.err.println("@@@ xDim: " + app_x_dim_);
     
    117114    else
    118115    {
    119         app_x_dim_  = xDim_fallback;
    120         app_y_dim_  = yDim_fallback;
     116        app_x_dim_  = app_.X_DIM;
     117        app_y_dim_  = app_.Y_DIM;
    121118    }
    122119
Note: See TracChangeset for help on using the changeset viewer.