Fragility and glass transition temperature of polymer confined under isobaric and isochoric conditions