fix anchor position bugs

 * fix explicit anchor using bogus values
 * use width/height for anchor position right/bottom instead of
   width-1/height-1