private Component fComponent;\r
private Point fGrowBase; // base of drag while growing image\r
private boolean fGrowProportionally; // should grow be proportional?\r
+ private String BaseUrl;\r
private boolean bLoading; // set to true while the receiver is locked, to indicate the reciever is loading the image. This is used in imageUpdate.\r
\r
/** Constructor\r
* Creates a new view that represents an IMG element.\r
* @param elem the element to create a view for\r
*/\r
- public RelativeImageView(Element elem)\r
+ public RelativeImageView(Element elem,String baseurl)\r
{\r
super(elem);\r
+ BaseUrl = baseurl;\r
initialize(elem);\r
StyleSheet sheet = getStyleSheet();\r
attr = sheet.getViewAttributes(this);\r
fElement = elem;\r
// request image from document's cache\r
AttributeSet attr = elem.getAttributes();\r
- if(isURL())\r
+ if(true || isURL())\r
{\r
URL src = getSourceURL();\r
if(src != null)\r
{\r
return null;\r
}\r
- URL reference = ((HTMLDocument)getDocument()).getBase();\r
+ //URL reference = ((HTMLDocument)getDocument()).getBase();\r
try\r
{\r
+ URL reference = new URL(BaseUrl);\r
URL u = new URL(reference,src);\r
return u;\r
}\r